setTheme: Create a new theme

Description Usage Arguments Examples

View source: R/visualise.R

Description

Assign parameters in an rtTheme to create a new theme.

Usage

1
2
3
setTheme(from = NULL, title = NULL, box = NULL, xAxis = NULL,
  yAxis = NULL, grid = NULL, legend = NULL, geom = NULL,
  raster = NULL)

Arguments

from

[rtTheme]
an rtTheme object.

title

[named list(.)]
plot = TRUE/FALSE, fontsize and colour of the title.

box

[named list(.)]
plot = TRUE/FALSE, linewidth, linetype and colour of the bounding box (not supported recently).

xAxis

[named list(.)]
plot = TRUE/FALSE, number of bins and margin of the x-axis,

label [named list(.)]
plot = TRUE/FALSE, title, fontsize, colour and rotation of the x-axis label,

ticks [named list(.)]
plot = TRUE/FALSE, fontsize, colour and number of digits to which to round the x-axis ticks.

yAxis

[named list(.)]
plot = TRUE/FALSE, number of bins and margin of the y-axis,

label [named list(.)]
plot = TRUE/FALSE, title, fontsize, colour and rotation of the y-axis label,

ticks [named list(.)]
plot = TRUE/FALSE, fontsize, colour and number of digits to which to round the y-axis ticks.

grid

[named list(.)]
plot = TRUE/FALSE, colour, linetype and linewidth of the major and minor grid and whether or not to plot the minor = TRUE/FALSE grid.

legend

[named list(.)]
plot = TRUE/FALSE, number of bins, ascending = TRUE/FALSE order of values and sizeRatio plot and legend,

label [named list(.)]
plot = TRUE/FALSE, fontsize and colour of the legend labels,

box [named list(.)]
plot = TRUE/FALSE, linetype, linewidth and colour of the legend box.

geom

[named list(.)]
line, fill, linetype, linewidth, pointsize and pointsymbol of a geom,

scale [named list(.)]
x = 'someParameter' and to = 'someAttribute' to which to scale 'someParameter' to.

raster

[ named list(.)]
scale = 'someAttribute' and at least two colours to which to scale 'someAttribute' to.

Examples

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

visualise(input, theme = myTheme)

EhrmannS/rasterTools documentation built on Feb. 4, 2019, 11:22 a.m.