plotwc: plotWC

plotWCR Documentation

plotWC

Description

Plot the wordcloud changing the visualization parameters.

Usage

plotWC(
  x,
  tagPalette = NULL,
  madeUpper = c("dna", "rna"),
  preserve = FALSE,
  scaleFreq = NULL,
  fontFamily = "sans",
  numWords = NULL,
  wcScale = 10,
  argList = list(),
  useggwordcloud = TRUE,
  asis = FALSE
)

## S4 method for signature 'biotext'
plotWC(
  x,
  tagPalette = NULL,
  madeUpper = c("dna", "rna"),
  preserve = FALSE,
  scaleFreq = NULL,
  fontFamily = "sans",
  numWords = NULL,
  wcScale = 10,
  argList = list(),
  useggwordcloud = TRUE,
  asis = FALSE
)

Arguments

x

biotext object

tagPalette

tag palette when 'tag' is TRUE. It is also used for dependency network using udpipe, and tagging colorization for word cloud. Default to NULL, which indicates automatically set.

madeUpper

make these words uppercase in resulting plot, default to c("rna" and "dna")

preserve

Try to preserve original characters.

scaleFreq

default to NULL, scale the value if specified

fontFamily

font family to use, default to "sans".

numWords

the number of words to be shown in the plot. When 'autoThresh' is TRUE, the number of this value will be shown.

wcScale

scaling size for ggwordcloud

argList

parameters to pass to wordcloud() or ggwordcloud()

useggwordcloud

default to TRUE, otherwise use 'wordcloud' function.

asis

plot the original network (default to FALSE)

Details

The function accepts the already calculated biotext object and outputs the visualization based on the specified parameters.

Value

wordcloud visualization

Examples

geneList <- c("DDX41","PNKP","ERCC1","IRF3","XRCC1")
test <- refseq(geneList, plotType="wc")
plotWC(test, asis=TRUE)

noriakis/wcGeneSummary documentation built on May 31, 2024, 4:42 p.m.