sccore (version 0.1.2)

styleEmbeddingPlot: Set plot.theme, legend, ticks for embedding plot. Used primarily in embeddingPlot().

Description

Set plot.theme, legend, ticks for embedding plot. Used primarily in embeddingPlot().

Usage

styleEmbeddingPlot(
  gg,
  plot.theme = NULL,
  title = NULL,
  legend.position = NULL,
  show.legend = TRUE,
  show.ticks = TRUE,
  show.labels = TRUE,
  relabel.axis = TRUE
)

Arguments

gg

ggplot2 object to plot

plot.theme

theme for the plot (default=NULL)

title

plot title (default=NULL)

legend.position

vector with (x, y) positions of the legend (default=NULL)

show.legend

show legend (default=TRUE)

show.ticks

show ticks and tick labels (default=TRUE)

show.labels

show labels (default=TRUE)

relabel.axis

boolean If TRUE, relabel axes with ggplot2::labs(x='Component 1', y='Component 2') (default=TRUE)

Value

ggplot2 object