Questions tagged as 'ggplot2'

1
answer

Graphics on panels in ggplot2

I have 25 species and I would like Just write a script where I could have a separate chart for each species (in total there would be 25 small graphs on a 5x5 grid). I'd also like to do two different plots for the savannah and forest;...
asked by 26.05.2018 / 16:25
1
answer

Text position in graphic using ggplot2

I need to adjust the position of a text in the bar chart so that it is above the bar. Below the code used base.total %>% group_by(SEXO, REGIME.JURIDICO.FINAL)%>% count() %>% ggplot(., aes(x=reorder(SEXO, -n), y=n, fill = REGIME....
asked by 04.08.2017 / 14:23
1
answer

Bar Chart in ggplo2, geom_bar ()

I made this chart with geom_bar() , I would like the bars to stick to the bottom line, indicated by the arrows. How could I do it? Is there any parameter of the theme() function that can solve this problem?     
asked by 17.09.2018 / 20:59
1
answer

Graphic title bar in ggplot2

I made this chart with geom_bar() , I would like the title (a) to follow the direction of ylab , but I can not. I used this parameter of the function geom_bar() theme(plot.title = element_text(hjust = 0, size = 13)...
asked by 19.09.2018 / 23:38
1
answer

Questions about ggplot in bars

Hello, I am trying to plot a graph in bars geom_bar , where X corresponds to the days of the month, in this case February, and y refers to the value of two variables v1 e v2 referring to the day in position = "dodge" . I studi...
asked by 02.03.2018 / 18:54
1
answer

How to insert point and line legend in ggplot?

How do I insert the points into the caption? The purple dot on the caption "base1" and the red dot on the caption "base2"? lines = 'Mes Lg1 total1 Lg2 total2 Jan base1 1450 base2 89 Fev base1 1700 base2 86...
asked by 02.07.2018 / 00:05
1
answer

multiple columns using geom_lines ggplot

I have this date frame: structure(list('Exchange Rate' = c(-0.145442175, 0.291096141, 0.489923112, -2.038363166, 1.180430664, 0.188114666, 0.850922634, 1.172142766, -3.980837975, 0.285762444, 2.497040646, 0.658010994, -0.925171981, 0.370769...
asked by 06.10.2016 / 23:56
1
answer

Subtitles ggplot2

I have this graph created by the geom_bar () function: Iwouldliketoseparatethetwoboxeswheretheyareplottedtofill,asfollows: How do I do this? which parameter of the theme () function can I use to solve this problem?     
asked by 21.09.2018 / 03:52
1
answer

Error generating graph with package ggplot2 in R

Hello, I'm looking for help to improve a script in R. I've developed it with the help of the ggplot2 package. I want to show a graph with average and standard error and the points of the data set. For this I used the layers "geom_errorbar ()" an...
asked by 08.08.2018 / 16:09
2
answers

I want to generate a table of R for Latex

I want to generate a table with the summary data of R with the results I got, I know there is a library called stargazer that does, but I did not find the documentation.     
asked by 14.09.2017 / 06:14