Increase ggplot points size
I have two datasets:
mydata1 <- data.frame(Class=letters[1:10], Magnitude = rnorm(10, 3, sd = 1),
pValue= abs(rnorm(10, 8, 5)), number= sample (10:50, 10))
mydata2 <- data.frame(Class=letters[1:10], Magnitude = rnorm(10, 2, sd = 0.5),
pValue= abs(rnorm(10, 3, 4)), number= sample (10:50, 10))
I am trying to make two plots keeping the same scale between them
ggplot(mydata1, aes(x=Magnitude, y=number, size=pValue, label=Class), guide=F) + geom_point() + scale_size_continuous(limits=c(0,16), breaks = c(0,2,6,10,16)) ggplot(mydata2, aes(x=Magnitude, y=number, size=pValue, label=Class), guide=F) + geom_point() + scale_size_continuous(limits=c(0,16), breaks = c(0,2,6,10,16))
My simple question is, how do I increase (proportionally) the size of my glasses? They are too small on the graph. The argument is max_size
not recognized internally scale_size_continuous
.
And if I use
ggplot(mydata2, aes(x=Magnitude, y=number, size=pValue, label=Class), guide=F) + geom_point() + scale_size_continuous(limits=c(0,16), breaks = c(0,2,6,10,16)) + scale_size_area(max_size=8)
it overrides scale_size_continuous
.
Any help is appreciated as I'm running out of options ...
+3
source to share
No one has answered this question yet
Check out similar questions: