This function returns a ggplot2 theme that is black borded with black font.

theme_ArchR(
  color = "black",
  textFamily = "sans",
  baseSize = 10,
  baseLineSize = 0.5,
  baseRectSize = 0.5,
  plotMarginCm = 1,
  legendPosition = "bottom",
  legendTextSize = 5,
  axisTickCm = 0.1,
  xText90 = FALSE,
  yText90 = FALSE
)

Arguments

color

The color to be used for text, lines, ticks, etc for the plot.

textFamily

The font default family to be used for the plot.

baseSize

The base font size (in points) to use in the plot.

baseLineSize

The base line width (in points) to be used throughout the plot.

baseRectSize

The base line width (in points) to use for rectangular boxes throughout the plot.

plotMarginCm

The width in centimeters of the whitespace margin around the plot.

legendPosition

The location to put the legend. Valid options are "bottom", "top", "left", and "right.

legendTextSize

The base text size (in points) for the legend text.

axisTickCm

The length in centimeters to be used for the axis ticks.

xText90

A boolean value indicating whether the x-axis text should be rotated 90 degrees counterclockwise.

yText90

A boolean value indicating whether the y-axis text should be rotated 90 degrees counterclockwise.

Examples


# Create Random Data
m <- data.frame(x=matrix(rnorm(10, 2),ncol=1))
m$color <- sample(c("A", "B"), 10, replace = TRUE)

# Plot
p <- ggGroup(x = m$color, y = m$x) + theme_ArchR()

# To PDF
pdf("test.pdf", width = 4, height = 7)
p
dev.off()