setTheme: Create a new theme

Description Usage Arguments Examples

View source: R/visualise.R

Description

Change parameters in a gtTheme to create a new theme.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
setTheme(
  from = NULL,
  title = NULL,
  box = NULL,
  xAxis = NULL,
  yAxis = NULL,
  grid = NULL,
  legend = NULL,
  scale = NULL,
  parameters = NULL
)

Arguments

from

[gtTheme]
a gtTheme object to modify.

title

[named list(3)]

  • plot [logical], whether or not to plot the title

  • fontsize [numeric]

  • colour [character]

box

[named list(5)]

  • plot [logical]

  • fillcol [character]

  • linewidth [numeric]

  • linetype [character]

  • linecol [character]

xAxis

[named list(5)]

  • plot [logical]

  • bins [numeric], into which to separate the tick labels

  • margin [numeric], proportion (0 - 1) of the plot that shall be taken by the margin

  • label [named list(5)]

    • plot [logical]

    • title [character]

    • fontsize [numeric]

    • colour [character]

    • rotation [numeric]

  • ticks [named list(5)]

    • plot [logical]

    • fontsize [numeric]

    • colour [character]

    • rotation [numeric]

    • digits [numeric], number of digits to round non-integer values to

yAxis

[named list(5)]

  • plot [logical]

  • bins [numeric]

  • margin [numeric]

  • label [named list(5)]

    • plot [logical]

    • title [character]

    • fontsize [numeric]

    • colour [character]

    • rotation [numeric]

  • ticks [named list(5)]

    • plot [logical]

    • fontsize [numeric]

    • colour [character]

    • rotation [numeric]

    • digits [numeric]

grid

[named list(5)]

  • plot [logical]

  • minor [logical], whether or not to plot the minor grid

  • colour [character]

  • linetype [character]

  • linewidth [numeric]

legend

[named list(10)]

  • plot [logical]

  • bins [logical]

  • ascending [logical], order of values

  • position [logical] (currently only "right" possible)

  • orientation [logical] (currently only "vertical" possible)

  • xRatio [logical], ratio between the legend and the plot-box

  • yRatio [character]

  • digits [numeric]

  • label [named list(3)]

    • plot [logical]

    • fontsize [numeric]

    • colour [character]

  • box [named list(4)]

    • plot [logical]

    • linetype [character]

    • linewidth [numeric]

    • colour [character]

scale

[named list(6)]

  • param [logical] and

  • to [logical], specifying which parameter shall be scale to which attribute

  • identity [logical]

  • range [numeric], that shall be represented by the scale

  • bins [numeric], into which the values shall be classified

  • maxPixels [numeric]

parameters

[named list(6)]

  • colours [character], between which to scale (must be at least two, but can be as many as required)

  • missingcol [character]

  • linetype [character]

  • linewidth [numeric]

  • pointsize [numeric]

  • pointsymbol [numeric]

Examples

1
2
3
4
input <- gtRasters$continuous
(myTheme <- setTheme(title = list(plot = FALSE)))

visualise(input, theme = myTheme)

geometr documentation built on Sept. 21, 2021, 1:07 a.m.