I\'m doing an scatter plot using ggplot. I would like to have points with a particular colour and fill (in plot, colour=\"blue\", fill=\"cyan4\", f
You'll have to use shapes from 21 to 25. These are the ones that have colour and fill properties:
ggplot(df, aes(own, method)) +
geom_point(colour="white", shape=21, size = 4,
aes(fill = factor(label))) +
scale_fill_manual(values=c("blue", "cyan4"))
If you want different colours for colour as well, then:
ggplot(df, aes(own, method)) +
geom_point(aes(colour=factor(label),
fill = factor(label)), shape=21, size = 4) +
scale_fill_manual(values=c("blue", "cyan4")) +
scale_colour_manual(values=c("white", "black"))