I am using the beeswarm
package in R and have some problems customizing individual datapoints. I am using below data and code.
library(beeswarm)
df <- data.frame(x = c(LETTERS), y = "1",
z = c(rnorm(26, 11, 4)))
beeswarm(z ~ y, data = df,
pwcol = c(1, rep(2, 25)), pwpch = c(1, rep(2, 25)), corral = "wrap", method = "center",
xlab = "", ylab = "variable", las=1
)
I would like to change this so that:
- The individual black circle becomes a black diamond with red fill.
- All red triangle datapoints become dark grey circles with no fill (open).
Could anyone help, please? Thank you.