R programming tutorial: Add a box plot inside a violin plot using ggplot2 in R

Sdílet
Vložit
  • čas přidán 11. 05. 2024
  • • R course
    A Box plot shows descriptive statistics of a continuous with a box and whispers. Five statistics of the variable, namely, the minimum and the maximum, the median, and the lower quantile and upper quantile are depicted in the plot. A violin plot shows a smoothed nonparametric violin curve of a continuous variable. Combination of a box plot and a violin plot can perfectly illustrate the statistics and distribution of a continuous both graphically and numerically.
    With ggplot2 package in R, we can adapt a box plot inside a violin plot easily with function geom_boxplot() and geom_violin().The example shows that a box plot is adapt and plotted inside a violin plot.
    #rprogramming
    #rstudio
    #boxplot
    #violinplot
    #ggplot2
    #ggplot
    #rdatacode
  • Věda a technologie

Komentáře • 1

  • @rdatacode
    @rdatacode  Před 3 měsíci

    czcams.com/play/PL5a9WtO_-lEAlYA_RhCrRWUo-QRbjnG07.html