Plot a wordcloud
plot_wordcloud.Rd
Plot a wordcloud, for differentially expressed genes or over-representation analysis results.
Usage
plot_wordcloud(
dataf,
label,
size_by,
size_limit = Inf,
max_size = 7,
color_by = size_by,
color_palette = NULL,
...
)
Arguments
- dataf
DATAFRAME : a dataframe containing the information to visualize. It can be the result of
Seurat::FindMarkers
orclusterProfiler::enrichGO
(no default)- label
CHARACTER : a column of
dataf
corresponding to the words (no default)- size_by
CHARACTER : a column of
dataf
corresponding to the size of the words (no default)- size_limit
NUMERIC : the threshold (as a percentile, eg. 0.9) in
size_by
values above which all words will have the same size (default toInf
, no threshold)- max_size
NUMERIC : parameter for the
ggplot2::scale_size_area
function (default to 7)- color_by
CHARACTER : a column of
dataf
to color words by (default to size_by)- color_palette
CHARACTER : a vector of colors to plot words by color_by. If the values in color_by are between 0 and 1, the default
aquarius::palette_GrOrBl
. Otherwise, the default isaquarius::palette_BlWhRd
withgray70
color associated with the 0.- ...
other parameters passed to the
ggwordcloud::geom_text_wordcloud_area
function