# NOT RUN {
# Data for plots
D <- subset(Dbuilding, 1:192)
# See the parameters which can be set
p <- par_ts()
names(p)
p$xnm
# Using the default values
plot_ts(D, c("heatload","Ta"), kseq=1:24)
# Set the parameters directly
plot_ts(D, c("heatload","Ta"), kseq=1:24, legendcex=0.8, legendspace=8)
# Set parameters to be given in a list
p <- par_ts()
p$legendcex <- 0.8
p$legendspace <- 8
# Use those parameters
plot_ts(D, c("heatload","Ta"), kseq=1:24, p=p)
# Set globally (if not set specifed the default values will be used)
options(par_ts=p)
# Now the global parameters will be used
plot_ts(D, c("heatload","Ta"), kseq=1:24)
# Still providing a parameter directly it will used, e.g. change the plotting function
plot_ts(D, c("heatload","Ta"), kseq=1:24, plotfun=points)
# Control more precisely the plotting function
plot_ts(D, c("heatload","Ta"), kseq=1:24, plotfun=function(x, ...){ points(x, type="b", ...)})
# Another colorramp function
p$colorramp <- rainbow
options(par_ts=p)
plot_ts(D, c("heatload","Ta"), kseq=1:24)
# }
Run the code above in your browser using DataLab