Questions tagged as 'ggplot2'

1
answer

ggplot2 shows nothing or gives error

I'm testing the R ggplot2 package. I have tried in different ways and I never get a satisfactory result (rather, I always fail). I'm trying to make a graph that shows me the number of consultations per year. Using a plot by default of...
asked by 27.02.2017 / 12:28
2
answers

Tags and legend to two variables ggplot

I have been trying to label several variables in the same graph in ggplot. The following example clarifies the question: df<-data.frame("a"=rnorm(100,150,30), "b"=rnorm(100,150,30),"c"=rnorm(100,150,30)) ggplot(data=df,aes())+geom_density(...
asked by 26.09.2017 / 05:20