Description Usage Arguments Value Author(s) See Also Examples
View source: R/Supplement_testFastBar.R
Fastbar help get a barplot of ggplot2 style.
1 2 3 4 |
data |
a data frame |
x |
x is usually the colnames of symbol/names |
y |
y is usually the colnames of frequency |
order |
whether order from upper to lower |
fill |
Default is white.Set fill=x is a useful way to enhance visualize barplot and recommanded |
color |
Default is NULL,and use x as color scale |
palette |
Default is NULL,and it use a lucky::mycolor color strategy.Or you can set self-defined colors.Note that the number of color you want to set should be the same as the unique number of x |
label |
Default is TRUE.If variables are too much,you can set FALSE to enhance visualization |
size |
a size control for plot title,axis titles and labels |
position |
see ggpubr::ggbarplot |
title |
the title of the plot |
legend.position |
the position of legend.you can select "top","left","right" and "none" |
a ggplot list
Weibin Huang<654751191@qq.com>
ggpubr::ggbarplot
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.