File:Ggplot2 PlantGrowth violin plot.svg

Summary

Description
English: A violin plot of the PlantGrowth data set created by the ggplot2 package in R.
Date
Source Own work
Author Colohisto
SVG development
InfoField
Source code
InfoField

R code

set.seed(2)
ggplot(PlantGrowth, aes(x = group, y = weight, group = group, fill = group)) + geom_violin(trim = FALSE, na.rm = TRUE) + geom_point() + geom_jitter(position = position_jitter(width = 0.1, height = 0)) + scale_fill_discrete(labels = c("Control", "Treatment 1", "Treatment 2")) + labs(title = "Plant Growth vs. Treatment", x = "Group", y = "Weight", fill = "Group")

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
Category:CC-BY-4.0#Ggplot2%20PlantGrowth%20violin%20plot.svgCategory:Self-published work
Category:Ggplot2 Category:Violin plots
Category:CC-BY-4.0 Category:Ggplot2 Category:Self-published work Category:Valid SVG created with R code Category:Violin plots