Skip to content
Prev 385855 / 398503 Next

How to decrease size of points?

Hello,

Inline.

?s 20:01 de 30/09/20, Medic escreveu:
If you want different sizes, the main idea is the same, assign the sizes 
in scale_size_manual.

Stage is a factor so it has a certain number of levels. Create a numeric 
variable, Sizes, from the minimum to the maximum size, set names to its 
values and use that vector.
With 0.4 and 0.8 as min and max size, something like


Sizes <- seq(0.4, 0.8, length.out = length(levels(df1$Stage)))
Sizes <- setNames(Sizes, levels(df1$Stage))

p1 + scale_size_manual(values = Sizes)


Hope this helps,

Rui Barradas