whiteTheme {twoddpcr} | R Documentation

## Use a theme with a white background and grey lines.

### Description

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

### Usage

    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

    ## 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()

[Package twoddpcr version 1.18.0 Index]