Jump to content

File:Ggplot2 PlantGrowth violin plot.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 512 × 512 pixels, file size: 130 KB)

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
 
The SVG code is valid.
 
This chart was created with R.
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.

Captions

Violin Plot of the PlantGrowth data set from R

Items portrayed in this file

depicts

12 May 2025

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current17:27, 12 May 2025Thumbnail for version as of 17:27, 12 May 2025512 × 512 (130 KB)ColohistoUploaded own work with UploadWizard

The following page uses this file:

Metadata