View source: R/swne_plotting.R
| PlotSWNE | R Documentation | 
Plots swne embedding
PlotSWNE(
  swne.embedding,
  sample.groups,
  alpha.plot = 0.25,
  do.label = F,
  label.size = 4.5,
  pt.size = 1,
  samples.plot = NULL,
  show.legend = T,
  seed = NULL,
  colors.use = NULL,
  use.brewer.pal = F,
  contour.geom = "path",
  contour.alpha = 0.25
)
| swne.embedding | SWNE embedding (list of factor and sample coordinates) from EmbedSWNE | 
| sample.groups | Factor defining sample groups | 
| alpha.plot | Data point transparency | 
| do.label | Label the sample groups | 
| label.size | Label font size | 
| pt.size | Sample point size | 
| samples.plot | Vector of samples to plot. Default is NULL, which plots all samples | 
| show.legend | If sample groups defined, show legend | 
| seed | Seed for sample groups color reproducibility | 
| colors.use | Vector of hex colors for each sample group. Vector names must align with sample.groups | 
| use.brewer.pal | Use RColorBrewer 'Paired' palette instead of default ggplot2 color wheel | 
| contour.geom | Plot contour as either a line or a filled in region | 
| contour.alpha | Transparency of the contour line/region | 
ggplot2 object with swne plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.