Description Usage Arguments Author(s) Examples
hist plots either one or two histograms and the according kernel
density estimates using density.
This plotting routine extracts all the information from the input
dataframe which has to be 'WUX-style' (see models2wux).
1 2 3 4 5 6 7 8 9 | ## S3 method for class 'wux.df'
hist(x, datain2.df = NULL, var.name = "delta.air_temperature",
subreg.subset = NULL, season.subset = NULL, plot.density = TRUE,
hist1.col = "red", hist2.col = "blue", bw = "nrd0", kernel = "gaussian",
mark.df = NULL, plot.legend = FALSE, xlim = NULL, ylim = NULL,
xtick.number = 10, ytick.number = 10, xminor.tick = FALSE, yminor.tick =
FALSE, xlab = NULL, ylab = "Probability Density", main =
NULL, out.file.directory = NULL, out.file.name = NULL, copyright = FALSE, ...)
|
x |
1st WUX dataframe obtained from |
datain2.df |
2nd WUX dataframe obtained from |
var.name |
Character string of parameter in WUX dataset. Default is temperature change. |
subreg.subset |
Vector of subregions to be plotted
(e.g. |
season.subset |
Vector of seasons to be plotted
(e.g. |
plot.density |
Boolean. Indicating if kernel density estimates should be
plotted. Default is |
hist1.col |
Character string of the 1st histogram color (e.g. |
hist2.col |
Character string of the 2nd histogram color (e.g. |
bw |
The smoothing bandwidth to be used in |
kernel |
A character string giving the smoothing kernel to be used in
|
mark.df |
Subset of WUX dataframe indicating the models to be marked. |
plot.legend |
Boolean. Indicating if a plot legend indicating the models of mark.df and
sample size should be plotted. Default is |
xlim |
Range vector for the x-axis. |
ylim |
Range vector for the y-axis. |
xtick.number |
Number of ticks for the x-axis with default |
ytick.number |
Number of ticks for the y-axis with default |
xminor.tick |
Boolean. Indicating if minor ticks for the x-axis should be
plotted. Default is |
yminor.tick |
Boolean. Indicating if minor ticks for the y-axis should be
plotted. Default is |
xlab |
Label for x-axis. |
ylab |
Label for y-axis with default |
main |
Main title. |
out.file.directory |
String of the directory where the plots are exported
(e.g. |
out.file.name |
Prefix of the file names of the plots. Files will be stored as
|
copyright |
Boolean. If a copyright message should be plotted. Default is FALSE. |
... |
Further optional arguments passed to |
Georg Heinrich g.heinrich@uni-graz.at
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## load WUX and read WUX test data
require(wux)
data(ensembles)
wuxtest.df <- subset(ensembles, subreg == "GAR")
## set dataframe for model marks
mark.df <- subset(wuxtest.df, acronym %in% c("ICTP-REGCM3", "MPI-M-REMO"))
mark.df <- droplevels(mark.df)
## histogram plot
## Not run: hist(x = wuxtest.df, var.name =
"perc.delta.precipitation_amount", xlim = c(-50,50), ylim = c(0,0.12),
xtick.number = 9, xminor.tick = TRUE, ytick.number = 5,
yminor.tick = TRUE, xlab = "Precipitation Amount [%]", main =
"WUX histogram", plot.legend = TRUE, mark.df = mark.df, hist1.col =
"dark blue")
graphics.off()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.