Learn R Programming

precintcon (version 2.3.0)

pplot.lorenz: Plot Lorenz's curve

Description

Plots the Lorenz's curve of a precipitation serie.

Usage

pplot.lorenz(..., interval = 1, grouped = FALSE, xlab = expression(sum(n[i]), i==1), ylab = expression(sum(P[i]), i==1), legend.title = "Legend", legend = NULL, fontsize = 10, axis.text.color = "black", export = FALSE, export.name = "lorenz_plot.png", width = 8.6, height = 7.5, units = "cm")

Arguments

interval
the interval in millimeters applied for calculating the Lorenz's curve. (Default value: 1)
grouped
the logical value for defining whether all series should be plotted in the same graph or not. (Default value: FALSE)
xlab
the text for the x axis. (Default value: expression(sum(n[i]), i==1)
ylab
the text for the y axis. (Default value: expression(sum(P[i]), i==1))
legend.title
the text for the legend title. (Default value: "Legend")
legend
the text vector for the legend items. If NULL the legends will be equals to the variable names. (Default value: NULL)
fontsize
the font size value in pt. (Default value: 10)
axis.text.color
the legend colors. (Default value: "black")
export
the logical value for defining whether the graph should be export to a file or not. (Default value: FALSE)
export.name
the text for defining the exported file name. It is only used if export = TRUE. (Default value: "histogram_plot.png")
width
the number for defining the exported graph width. It is only used if export = TRUE. (Default value: 10)
height
the number for defining the exported graph height. It is only used if export = TRUE. (Default value: 10)
units
the text for defining the units of the height and width parameters. It is only used if export = TRUE. (Default value: "cm")
...
a set of daily precipitation series.

See Also

ci read.data as.daily

Examples

Run this code
##
# Loading the daily precipitation serie.
data(daily)

##
# Performing the a set of statistical analysis
pplot.ci(daily, interval = 1)

Run the code above in your browser using DataLab