Questions tagged as 'ggplot2'

1
answer

Error in ggint $ map_layout (panel, plot $ facet, layer_data, plot $ data): unused argument (plot $ data)

After updating the libraries in RStudio , I get the error that has to do with the library ggplot2 . p <- ggplot(overviewplotdata, aes(x=Dataset, y=Well, fi...
asked by 16.03.2016 / 18:33
1
answer

error when trying to include name to the second axis and using ggplot2

I'm trying to plot a chart with two "y" axes. I almost managed to finish it but I still do not know why I can not put a name to the second axis and. I enclose a fragment of my data so that it is better understood. The code I'm using is thi...
asked by 13.12.2018 / 12:34
1
answer

How to assign specific colors in ggplot R

I am working with a database and I want to make a barplot in which each column is related to a variable, and I want to assign each column a specific color, and not the one chosen by default by ggplot. These are the data I have: Abstenci...
asked by 07.06.2016 / 11:53
1
answer

Potential trend line using ggplot

These are my data Qmodelo <- c(10,25,50,75,100,125,150,175,200,225,250,275,300,325,350,375,400,425,450,475,500) Hmodelo <- c(73.57,111.39,152.31,181.50,204.73,225.42,243.94,259.77,273.95,287.90,299.20,309.62,319.15,328.17, 336.72, 344....
asked by 23.08.2016 / 20:48
1
answer

Color scales for geom_point

I try to create a ternary graph ggtern(data = Libro1,x= Arcilla, y= Arena, z= MO) and use geom_point to represent with points and scales of colors the different Largos de planta obtained on the ternary graph. The problem is...
asked by 19.09.2017 / 16:45
1
answer

Limit axes so that they go from one range to another without problem

I am trying to generate a ternary graph with types of soils made up of different combinations of Arcilla , Arena and MO . In turn, I calculate the growth of the plants in the types of conformed soils. Values range from 0 to 10...
asked by 12.09.2017 / 17:00
0
answers

Heatmap with different levels on the axis with GGPLOT

I have some data arranged as follows: And I'm trying to generate a heatmap (extend something I've already done with geom_raster() ) to get something like that, with two levels in one of the axes: I found an answer for the ca...
asked by 04.09.2018 / 14:18
1
answer

Help with ggplot and Shiny

In normal R I generate a very simple graphic with ggplot that I would like to show in Shiny but I can not make it look and I do not know what the error is. Outside the Server declared the plot but I do not know how to use it. This is the code...
asked by 22.03.2018 / 01:26
1
answer

Problem with ranges when generating a histogram

I would like to create a frequency histogram, defining the ranges of each bar in the histogram. I thought that by defining the number of bars, their ranges would be defined but I have not managed to obtain a desired histogram. the code that I...
asked by 08.01.2018 / 15:54
3
answers

Graphic doubt of violins

I am taking my first steps with R. In this case I am representing a violin chart with my data, and I have a question. (1) I do not know what to do to order the violins from left to right, from the lower to the medium average . And in some paper...
asked by 26.03.2018 / 11:54