pcutils0.2.8 package

Some Useful Functions for Statistics and Visualization

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

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

download_ncbi_genome_file

Download genome files from NCBI based on accession number

download2

Download File

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

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

pcutils-package

pcutils: Some Useful Functions for Statistics and Visualization

pipe

Pipe operator

plot.coefficients

Plot coefficients as a bar chart or lollipop chart

plotgif

Plot a gif

plotpdf

Plot a multi-pages pdf

pre_number_str

Prepare a numeric string

prepare_package

Prepare a package

read_fasta

Read fasta file

read.file

Read some special format 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

tax_pie

Pie plot

taxonomy

test data for pcutils package

tidai

Replace a vector by named vector

trans_format

Transfer the format of file

trans

Trans format your data

translator

Translator

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)

write_fasta

Write a data.frame to fasta

Offers a range of utilities and functions for everyday programming tasks. 1.Data Manipulation. Such as grouping and merging, column splitting, and character expansion. 2.File Handling. Read and convert files in popular formats. 3.Plotting Assistance. Helpful utilities for generating color palettes, validating color formats, and adding transparency. 4.Statistical Analysis. Includes functions for pairwise comparisons and multiple testing corrections, enabling perform statistical analyses with ease. 5.Graph Plotting, Provides efficient tools for creating doughnut plot and multi-layered doughnut plot; Venn diagrams, including traditional Venn diagrams, upset plots, and flower plots; Simplified functions for creating stacked bar plots, or a box plot with alphabets group for multiple comparison group.

  • Maintainer: Chen Peng
  • License: GPL-3
  • Last published: 2025-03-27