Open nbdutra opened 2 years ago
Do you want to translate the figure caption?
"Setting alpha to a number lower than 1 lets you see parts of the plot hidden behind an object."
And any of the comments or english in the plot?
# if you omit alpha, it defaults to 1
alpha1.00 <- ggplot(diamonds, aes(x = depth, fill = cut)) +
geom_density() + [xlim](https://rdrr.io/r/graphics/plot.window.html)(55, 70)
alpha0.25 <- ggplot(diamonds, aes(x = depth, fill = cut)) +
geom_density(alpha = 0.25) + [xlim](https://rdrr.io/r/graphics/plot.window.html)(55, 70)
cowplot::[plot_grid](https://wilkelab.org/cowplot/reference/plot_grid.html)(alpha1.00, alpha0.25, nrow = 2,
labels = [c](https://rdrr.io/r/base/c.html)("alpha = 1.0", "alpha = 0.25"))
alpha (stats)
alpha (graphics)