# Some Useful Functions for Statistics and Visualization

## Documentation for package ‘pcutils’ version 0.2.8

- DESCRIPTION file.
- Package NEWS.

## Help Pages

add_alpha | Add alpha for a Rcolor
add_analysis | Add an analysis for a project
add_theme | Add a global gg_theme and colors for plots
areaplot | Plot a stack plot
change_fac_lev | Change factor levels
check_directory_structure | Check if a directory structure matches the expected structure
china_map | Plot china map
copy_df | Copy a data.frame
copy_vector | Copy a vector
count2 | Like 'uniq -c' in shell to count a vector
dabiao | Print some message with =
del_ps | Detach packages
df2distance | Convert Three-column Data to Distance Matrix
df2link | df to link table
distance2df | Convert a distance matrix to a data frame
download2 | Download File
download_ncbi_genome_file | Download genome files from NCBI based on accession number
explode | Explode a data.frame if there are split charter in one column
fittest | Fit a distribution
generate_labels | Generate labels position
get_cols | Get n colors
get_legend2 | Get a legend from a ggplot object
gghist | gg histogram
gghuan | Plot a doughnut chart
gghuan2 | gghuan2 for multi-doughnut chart
ggmosaic | ggmosaic for mosaic plot
ggplot_lim | Get a ggplot xlim and ylim
ggplot_translator | Translate axis label of a ggplot
grepl.data.frame | Grepl applied on a data.frame
group_box | Plot a boxplot
group_test | Performs multiple mean comparisons for a data.frame
gsub.data.frame | Gsub applied on a data.frame
guolv | Filter your data
hebing | Group your data
hebing2 | Group your data
how_to_set_font_for_plot | How to set font for ggplot
how_to_set_options | How to set options in a package
how_to_update_parameters | How to update parameters
how_to_use_parallel | How to use parallel
how_to_use_sbatch | How to use sbatch
igraph_translator | Translate text of igraph
is.ggplot.color | Judge if a characteristic is Rcolor
legend_size | Scale a legend size
lib_ps | Attach packages or install packages have not benn installed
list_to_dataframe | Trans list (with NULL) to data.frame
little_guodong | My cat
lm_coefficients | Get coefficients of linear regression model
make_gitbook | Make a Gitbook using bookdown
make_project | Make a R-analysis project
make_py_pkg | Make a new python package
match_df | Match otutab and metadata
metadata | test data for pcutils package
mmscale | Min_Max scale
multireg | Multiple regression/ variance decomposition analysis
multitest | Multi-groups test
my_cat | Show my little cat named Guo Dong which drawn by my girlfriend.
my_circle_packing | My Circle packing plot
my_circo | My circo plot
my_lm | Fit a linear model and plot
my_sunburst | My Sunburst plot
my_treemap | My Treemap plot
my_voronoi_treemap | My Voronoi treemap plot
otutab | test data for pcutils package
plot.coefficients | Plot coefficients as a bar chart or lollipop chart
plotgif | Plot a gif
plotpdf | Plot a multi-pages pdf
prepare_package | Prepare a package
pre_number_str | Prepare a numeric string
read.file | Read some special format file
read_fasta | Read fasta file
remove.outliers | Remove outliers
rgb2code | Transform a rgb vector to a Rcolor code
rm_low | Remove the low relative items in each column
sample_map | Plot the sampling map
sanxian | Three-line table
scale_color_pc | Scale a fill color
scale_fill_pc | Scale a fill color
search_browse | Search and browse the web for specified terms
set_pcutils_config | Set config
show_pcutils_config | Show config
split_text | Split text into parts, each not exceeding a specified character count
squash | Squash one column in a data.frame using other columns as id.
stackplot | Plot a stack plot
strsplit2 | Split Composite Names
t2 | Transpose data.frame
taxonomy | test data for pcutils package
tax_pie | Pie plot
tidai | Replace a vector by named vector
trans | Trans format your data
translator | Translator
trans_format | Transfer the format of file
twotest | Two-group test
update_NEWS_md | Update the NEW.md for a package
update_param | Update the parameters
venn | Plot a general venn (upset, flower)
venn.data.frame | Plot a general venn (upset, flower)
venn.list | Plot a general venn (upset, flower)
write_fasta | Write a data.frame to fasta