opt_bar | R Documentation |
Bar plots of co-clustering optimization results.
opt_bar(
df.res,
para.na,
bar.width = 0.8,
thr = NULL,
title = NULL,
title.size = 25,
xlab = NULL,
ylab = NULL,
axis.title.size = 25,
x.text.size = 25,
y.text.size = 25,
x.agl = 80,
x.vjust = 0.6,
fill = "#FF6666"
)
df.res |
A |
para.na |
The targe parameter, which is a column name in |
bar.width |
Width of a single bar. |
thr |
A y-axis threshold, which will be used to draw a horizontal line. |
title , title.size |
The plot title and its size. |
xlab , ylab |
The x and y axis label respectively. |
axis.title.size |
The size of x and y axis labels. |
x.text.size , y.text.size |
The size of x and y axis text. |
x.agl , x.vjust |
The angle and vertical position of x-axis text. |
fill |
The color of bars. |
An object of ggplot.
Jianhai Zhang jzhan067@ucr.edu
Dr. Thomas Girke thomas.girke@ucr.edu
H. Wickham. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York, 2016.
set.seed(10)
df.res <- data.frame(dimred=sample(c('PCA', 'UMAP'), 50, replace=TRUE), cluster=sample(c('wt', 'fg', 'le'), 50, replace=TRUE))
opt_bar(df.res=df.res, para.na='cluster', ylab='Remaining outcomes')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.