basetheme {scDataviz} | R Documentation

## Package-wide, non-user function used to set a base `ggplot2` theme.

### Description

Package-wide, non-user function used to set a base `ggplot2` theme.

### Usage

    basetheme(
      titleLabSize,
      subtitleLabSize,
      captionLabSize,
      axisLabSize,
      xlabAngle,
      xlabhjust,
      xlabvjust,
      ylabAngle,
      ylabhjust,
      ylabvjust,
      legendPosition,
      legendLabSize
    )

### Arguments

`titleLabSize` | Size of plot title.
`subtitleLabSize` | Size of plot subtitle.
`captionLabSize` | Size of plot caption.
`axisLabSize` | Size of x- and y-axis labels.
`xlabAngle` | Rotation angle of x-axis labels.
`xlabhjust` | Horizontal adjustment of x-axis labels.
`xlabvjust` | Vertical adjustment of x-axis labels.
`ylabAngle` | Rotation angle of y-axis labels.
`ylabhjust` | Horizontal adjustment of y-axis labels.
`ylabvjust` | Vertical adjustment of y-axis labels.
`legendPosition` | Position of `legend ('top', 'bottom', 'left', 'right', 'none')`.
`legendLabSize` | Size of plot legend text.

### Details

Package-wide, non-user function used to set a base `ggplot2` theme.

### Value

A `list` object.

### Author(s)

Kevin Blighe <kevin@clinicalbioinformatics.co.uk>

### Examples

    # create a theme
    th <- basetheme(
      titleLabSize = 16,
      subtitleLabSize = 12,
      captionLabSize = 12,
      axisLabSize = 16,
      xlabAngle = 0,
      xlabhjust = 0.5,
      xlabvjust = 0.5,
      ylabAngle = 0,
      ylabhjust = 0.5,
      ylabvjust = 0.5,
      legendPosition = 'none',
      legendLabSize = 12)

[Package scDataviz version 1.4.0 Index]