> a) How to change the text in the legend (for example, "number" instead of
> "n").
Use: scale_size("number")
> b) How to avoid having a legend for the polygon?
Don't include the value for alpha inside aes (you want to set it as
opposed to mapping it).
So,
ggplot(mydata, aes(x, y)) + geom_poi
Hello fellow R's,
I´ve been learning to use the ggplot2 library, and after a full day of
work I still have a couple of basic questions.
Here is an example:
mydata=data.frame(x=runif(20),y=runif(20),n=runif(20))
mydata2=data.frame(x=c(0.4,0.6,0.5),y=c(0.4,0.4,0.6))
ggplot(mydata, aes(x, y)) +
2 matches
Mail list logo