whiteTheme: Use a theme with a white background and grey lines.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/themes.R

Description

The default ggplot theme has a grey background. This layer can be added to change the aesthetics.

Usage

1
whiteTheme(legendPosition = "right", legendJustification = "center")

Arguments

legendPosition

Where to position the legend. This can be "none", "left", "right", "bottom", "top" or a numeric vector of length two. See the documentation for theme.

legendJustification

The justification to use for the legend positioning. This should be "center" or a two-element vector. Defaults to "center".

Value

A ggplot theme layer.

Author(s)

Anthony Chiu, anthony.chiu@cruk.manchester.ac.uk

See Also

This function uses theme.

Examples

1
2
3
4
5
6
7
8
## Get a data frame in the right format.
aWell <- KRASdata[["E03"]]
aWell$Cluster <- relabelClasses(aWell, classCol="Cluster")

## Plot it with the white theme.
ggplot2::ggplot(aWell, ggplot2::aes(x=Ch2.Amplitude, y=Ch1.Amplitude)) +
  ggplot2::geom_point(ggplot2::aes(colour=Cluster)) +
  whiteTheme()

CRUKMI-ComputationalBiology/twoddpcr documentation built on Feb. 14, 2021, 9:18 p.m.