Basic plotting framework for EGRET dot plots. Graphical parameters default to values that work well with most plots, but all can be re-assigned. See ?par for complete definitions of most optional input variables.
genericEGRETDotPlot(x, y, xlim, ylim, xTicks = pretty(xlim),
yTicks = pretty(ylim), printTitle = TRUE, xaxs = "i", xlab = "",
yaxs = "i", ylab = "", plotTitle = "", pch = 20, cex = 0.7,
cex.main = 1.3, font.main = 2, cex.lab = 1.2, tcl = 0.5,
cex.axis = 1, las = 1, xDate = FALSE, tinyPlot = FALSE,
hLine = FALSE, oneToOneLine = FALSE, rmSciX = FALSE, rmSciY = FALSE,
customPar = FALSE, col = "black", lwd = 1, showXLabels = TRUE,
showYLabels = TRUE, showXAxis = TRUE, showYAxis = TRUE,
removeFirstX = FALSE, removeLastX = FALSE, removeFirstY = FALSE,
removeLastY = FALSE, ...)
vector specifying the x data (required)
vector specifying the y data (required)
vector specifying the x plotting range (required)
vector specifying the y plotting range (required)
vector specifying x axis tick placement (required)
vector specifying y axis tick placement (required)
logical defaults to TRUE, plotting parameter to control whether to have title
character defaults to "i", defines the style of x-axis interval calculation. Possible values are i, r, e, s, d.
character defaults to "", defines the x label
character defaults to "i", defines the style of y-axis interval calculation. Possible values are i, r, e, s, d.
character defaults to "", defines the y label
character defaults to "", defines the plot title
number defaults to 20, specifies plot symbol
number defaults to 0.7, specifies plotting text magnification
number defaults to 1.3, specifies title text magnification
number defaults to 2, specifies which font to use for text
number defaults to 1.2 specifies label text magnification
number defaults to 0.5, specifies length of tick marks as fraction of height of a line of text.
number defaults to 1, specifies axis text magnification
number represents style of axis labels
logical defaults to FALSE, changes x label to "year-month" format if set to TRUE and total years less than 4.
logical defaults to FALSE, if TRUE, changes defaults to be appropriate for multi-plot
logical defaults to FALSE, inserts horizontal line at zero
logical defaults to FALSE, inserts 1:1 line
logical defaults to FALSE, changes x label from scientific to fixed
logical defaults to FALSE, changes y label from scientific to fixed
logical defaults to FALSE. If TRUE, par() should be set by user before calling this function
color of points on plot, see ?par 'Color Specification'
number line width
logical defaults to TRUE. If FALSE, the x axis label is not plotted
logical defaults to TRUE. If FALSE, the y axis label is not plotted
logical defaults to TRUE. If FALSE, the x axis is not plotted
logical defaults to TRUE. If FALSE, the y axis is not plotted
logical defaults to FALSE. If TRUE, removes the first x axis label. This can be handy for plotting mutliple plots.
logical defaults to FALSE. If TRUE, removes the last x axis label. This can be handy for plotting mutliple plots.
logical defaults to FALSE. If TRUE, removes the first y axis label. This can be handy for plotting mutliple plots.
logical defaults to FALSE. If TRUE, removes the last y axis label. This can be handy for plotting mutliple plots.
additional graphical parameters can be adjusted
eList <- Choptank_eList
Daily <- getDaily(eList)
x <- Daily$Date
y <- Daily$Q
xlim <- c(min(x),max(x))
ylim <- c(min(y),1.05*max(y))
xlab <- "Date"
ylab <- "Flow"
genericEGRETDotPlot(x=x, y=y,
xlim=xlim, ylim=ylim,
xlab=xlab, ylab=ylab,
plotTitle="Test"
)
Run the code above in your browser using DataLab