function to plot timeseries data, a corresponding histogram and an error shading for an error analysis via uwerr
plot_timeseries(dat, ylab, plotsize, titletext, hist.by, stat_range = c(1,
length(dat$y)), pdf.filename, name = "", xlab = "$t_\\mathrm{MD}$",
hist.probs = c(0, 1), errorband_color = rgb(0.6, 0, 0, 0.6),
type = "l", uwerr.S = 2, smooth_density = FALSE, periodogram = FALSE,
debug = FALSE, uw.summary = TRUE, ...)
Timeseries to analyse.
Y-axis label.
Width and Height of plot.
Text in the plot title.
Numeric. Stepping to compute the histogram breaks.
Optional integer vector of length 2. Start and end indices
of the subset of dat
to be plotted. If left empty, all of dat
will be
plotted.
String. PDF filename.
String. Timeseries name.
X-axis label.
Optional numeric vector of length 2. Probability extrema to limit the width of the histogram or smoothed density plots. By default all data is used. Note: this has not effect on the analysis as a whole or other plots.
String. Colour of the error band.
String. Plot type, see plot for details.
Numeric. S
of the uwerr method to be used.
Boolean. Instead of plotting a histogram, use a smoothed density.
Boolean. Whether to show a periodogram.
Boolean. Generate debug output.
Boolean. Generate an uwerr summary plot.
Generic graphical parameters to be passed on.
Returns a data.frame with named columns val
, dval
, tauint
, dtauint
, Wopt
and stringsAsFactors
, see uwerr.