You need to set the shape manually
library(ggplot2)
n <- 200
dataset <- data.frame(
Type = sample(c("A", "B"), n, replace = TRUE),
Value = rnorm(n)
)
ggplot(dataset, aes(x = Type, y = Value)) + geom_boxplot() +
geom_jitter(aes(shape = Type)) + scale_shape_manual(values = c(1, 19))
ir. Thierr
Hi,
I am trying to create a boxplot (with geom_jitter) such that the points
from one set of values are shown as circles, and the second set of points
also as circles, but with no fill. In other words, how can I control the
shape and color for the points appearing in this boxplot?
===
library(
2 matches
Mail list logo