Public methods
Method new()
Usage
trans_venn$new(dataset = NULL, sample_names = NULL, ratio = "numratio")
Arguments
- dataset
- the object of - microtableClass.
 
sample_namesdefault NULL; if provided, filter the samples.
ratiodefault numratio; NULL, "numratio" or "seqratio"; numratio: calculate number percentage; seqratio: calculate sequence percentage; 
NULL: no additional percentage.
Returns
venn_table and venn_count_abund stored in trans_venn object.
Examples
\donttest{
data(dataset)
t1 <- dataset$merge_samples(use_group = "Group")
t1 <- trans_venn$new(dataset = t1, ratio = "numratio")
}
Method plot_venn()
Plot venn diagram.
Usage
trans_venn$plot_venn(
  color_circle = RColorBrewer::brewer.pal(8, "Dark2"),
  fill_color = TRUE,
  text_size = 4.5,
  text_name_size = 6,
  text_name_position = NULL,
  alpha = 0.3,
  linesize = 1.1,
  petal_plot = FALSE,
  petal_color = "skyblue",
  petal_a = 4,
  petal_r = 1,
  petal_use_lim = c(-12, 12),
  petal_center_size = 40,
  petal_move_xy = 4,
  petal_move_k = 2.3,
  petal_move_k_count = 1.3,
  petal_text_move = 40
)
Arguments
- color_circle
- default RColorBrewer::brewer.pal(8, "Dark2"); color pallete 
fill_colordefault TRUE; whether fill the area color
text_sizedefault 4.5; text size in plot
text_name_sizedefault 6; name size in plot
text_name_positiondefault NULL; name position in plot
alphadefault .3; alpha for transparency
linesizedefault 1.1; cycle line size
petal_plotdefault FALSE; whether use petal plot.
petal_colordefault "skyblue"; color of the petal
petal_adefault 4; the length of the ellipse
petal_rdefault 1; scaling up the size of the ellipse
petal_use_limdefault c(-12, 12); the width of the plot
petal_center_sizedefault 40; petal center circle size
petal_move_xydefault 4; the distance of text to circle
petal_move_kdefault 2.3; the distance of title to circle
petal_move_k_countdefault 1.3; the distance of data text to circle
petal_text_movedefault 40; the distance between two data text
Returns
ggplot.
Examples
\donttest{
t1$plot_venn()
}
Method trans_venn_com()
Transform venn result for the composition analysis.
Usage
trans_venn$trans_venn_com(use_OTUs_frequency = TRUE)
Arguments
- use_OTUs_frequency
- default TRUE; whether only use OTUs occurrence frequency, i.e. presence/absence data; if FALSE, use abundance data. 
Returns
a new microtable class.
Examples
\donttest{
t2 <- t1$trans_venn_com(use_OTUs_frequency = TRUE)
}
Method print()
Print the trans_venn object.
Usage
trans_venn$print()
Method clone()
The objects of this class are cloneable with this method.
Usage
trans_venn$clone(deep = FALSE)
Arguments
- deep
- Whether to make a deep clone.