Assign parameters in a gtTheme to create a new theme.
setTheme(
from = NULL,
title = NULL,
box = NULL,
xAxis = NULL,
yAxis = NULL,
grid = NULL,
legend = NULL,
scale = NULL,
parameters = NULL
)[gtTheme] an gtTheme object.
[named list(.)] plot = TRUE/FALSE,
fontsize and colour of the title.
[named list(.)] plot = TRUE/FALSE,
linewidth, linetype and linecol of the bounding box
(not supported recently).
[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.
[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.
[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.
[named list(.)] plot = TRUE/FALSE, number of
bins, ascending = TRUE/FALSE order of values and the
sizeRatio of legend/plot size, 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.
[named list(.)] param = 'someParameter' and
to = 'someAttribute' specifying which parameter shall be scale to
which attribute, the value range that shall be represented by the
scale, the number of bins into which the values shall be classified
and the number of maxPixels.
[named list(.)] linecol, fillcol,
missingcol, linetype, linewidth, pointsize and
pointsymbol of the plot object.
# NOT RUN {
input <- gtRasters$continuous
(myTheme <- setTheme(title = list(plot = FALSE)))
visualise(input, theme = myTheme)
# }
Run the code above in your browser using DataLab