Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
ggpubr 0.5.0 source code.tar.gz | 2022-11-14 | 23.6 MB | |
ggpubr 0.5.0 source code.zip | 2022-11-14 | 23.9 MB | |
README.md | 2022-11-14 | 3.0 kB | |
Totals: 3 Items | 47.5 MB | 0 |
New features
- New functions
stat_anova_test()
,stat_kruskal_test()
,stat_welch_anova_test()
,stat_friedman_test()
andgeom_pwc()
added. These are flexible functions to add p-values onto ggplot with more options. The functiongeom_pwc()
is for adding pairwise comparisons p-values to a ggplot; supportted statistical methods include "wilcox_test", "t_test", "sign_test", "dunn_test", "emmeans_test", "tukey_hsd" and "games_howell_test". - New functions to convert character vector coordinates into NPC (normalized parent coordinates) and data coordinates:
as_npc()
,npc_to_data_coordinates()
andget_coord()
. - Global options:
- New function
ggpubr_options()
to display allowed global options in ggpubr - New available package options:
ggpubr.parse_aes
. logical indicating whether to parse or not the aesthetics variables names. Default isTRUE
. For example, if you want ggpubr to handle non-standard column names, like A-A, without parsing, then set this option to FALSE usingoptions(ggpubr.parse_aes = FALSE)
.
- New function
Minor changes
- Minimum rstatix version needed is set to 0.7.1
- Minimum ggplot2 version needed is set to 3.4.0
stat_conf_ellipse
: ensure stat returns a data.frame for compatibility with ggplot2 v>=3.4.0stat_compare_means()
:- Unit tests added
- Updated to use
after_stat(p.signif)
as the dot-dot notation (..p.signif..
) was deprecated in ggplot2 3.4.0 (#509).
ggdensity()
andgghistogram()
: dot-dot notation (..density..
,..count..
) replaced byafter_stat(density)
andafter_stat(count)
, respectively for compatibility with ggplot2 3.4.0.create_aes()
:- Default is now to parse its input, which can be an expression (#348). If you want ggpubr to handle non-standard column names (#229), like A-A, without parsing, then set this option to FALSE using
options(ggpubr.parse_aes = FALSE)
. - Supports space in column names like "Dimension 1"
- Unittest added
- Default is now to parse its input, which can be an expression (#348). If you want ggpubr to handle non-standard column names (#229), like A-A, without parsing, then set this option to FALSE using
- Arguments (
digits
andtable.font.size
) added toggsummarystats()
for changing the summary table decimal place and text size (#341). - In
stat_pvalue_manual()
the argumenthide.ns
can be either a logical value (TRUE or FALSE) or a character value ("p" or "p.adj" for filtering out non significant by p-value or adjusted p-values). - Now, the x-axis tick label names correctly align with the corresponding ticks when the rotation angle of the texts is set to 90. This is automatically achieved by setting internally
vjust = 0.5
(#301). Capital NS.
is no longer displayed bystat_compare_means()
(#171)- Unit tests added for
ggshistogram()
to make sure that it works when:- using
after_stat()
, - using after_stat() with trailing space inside parentheses.
- using
- Unit tests added for
ggscatter()
to make sure that:- it works when there is spaces in variable names
- it can handle non-standard column names when
ggpubr.parse_aes
global option is set to FALSE (#229)