Description
Tips for a helpful bug report:
-
If you have a question, please don't use this form. Instead, ask on https://stackoverflow.com/ or https://community.rstudio.com/.
-
Please include a minimal reproducible example, a reprex, to demonstrate the bug.
If you've never heard of a reprex, please read "Make a reprex".
Do not include session info unless it is explicitly asked for. -
If you can, use one of the built-in datasets or a small toy dataset that exposes the bug.
If for some reason, the bug only occurs on your original data, try to limit the number of rows that are necessary to expose the bug.
Share such data by copyingdput()
output rather than an external file. -
Unless the bug is about the theme, labels, scales or other plot decoration: please omit these from the code.
-
Please check whether somebody has reported the same problem in the issues.
Delete these instructions once you have read them.
--
has three shape, but need to present 6:
t1 <- data.frame(family = c('a','b','c'),a = 1:3,b=3:5)
library(ggplot2)
ggplot()+
geom_point(data = t1,aes(x = a, y = b,shape = factor(family,levels = letters[1:6]))) +
scale_shape_manual(values = 1:6,label = letters[1:6],drop = F)
legend shows well on ggplot2 V3.4.2 but not on V3.5.x