LaTeXFan
LaTeXFan

Reputation: 1231

How to change point size in qplot

In regular R plot, I can make points smaller or larger by changing cex argument. How do I do this if I use ggplot, please? In particular, I am making ggplot and want to make the points smaller. Thank you!

Thanks to those who commented. But I do not see how to use size for qqplot. My code is as follows.

qplot(sample=Shape, data=shape.mop, colour=Type) +
  theme(legend.position="bottom") +
  geom_point(size=0.5)

Upvotes: 0

Views: 11244

Answers (1)

Cath
Cath

Reputation: 24074

you can settle the size of points with parameter size inside qplot call, using functionI:

qplot(mpg, wt, data=mtcars)

enter image description here

qplot(mpg, wt, data=mtcars, size=I(0.2))

enter image description here

Upvotes: 18

Related Questions