Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ ggsignif Public

❗ This is a read-only mirror of the CRAN R package repository. ggsignif — Significance Brackets for 'ggplot2'. Homepage: https://const-ae.github.io/ggsignif/https://github.com/const-ae/ggsignif

License

Notifications You must be signed in to change notification settings

cran/ggsignif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ggsignif

Easily add significance bars to your ggplots

Description

This package provides an easy way to indicate if two groups are significantly different. Commonly this is shown with a by a bar on top connecting the groups of interest which itself is annoted with the level of significance (NS, *, **, ***). The package provides a single layer (geom_signif) that takes the groups for comparison and the test (t.test, wilcox etc.) and adds the annotation to the plot.

Example

Install package

devtools::install_github("Artjom-Metro/ggsignif")

Plot significance

library(ggplot2)
library(ggsignif)
ggplot(mpg, aes(class, hwy)) +
   geom_boxplot() +
   geom_signif(comparisons = list(c("compact", "midsize"), c("minivan", "suv")),
               map_signif_level = TRUE)

Result Plot

About

❗ This is a read-only mirror of the CRAN R package repository. ggsignif — Significance Brackets for 'ggplot2'. Homepage: https://const-ae.github.io/ggsignif/https://github.com/const-ae/ggsignif

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages