View source: R/plot_DepthTempTS.r
plot_DepthTempTS | R Documentation |
line plot for xyz-time series data with colorized z-variable (e.g. depth-temperature time series data from archival tags).
plot_DepthTempTS(ts_df, y="Depth", z="Temperature",
xlim, ylim, zlim, show.colorbar=TRUE,
pal="jet", cb.xlab, cb.xlab.line=0,
pt.lwd, do_interp=TRUE, Return=FALSE, mars, tz="UTC", ...)
plot_DepthTempTS_resampled(ts_df, y="Depth",z="Temperature", bin_res=10,
xlim, ylim, zlim, show.colorbar=TRUE,
pal="jet", cb.xlab, cb.xlab.line=0,
pt.lwd, do_interp=TRUE, Return=FALSE, mars, tz="UTC", ...)
plot_DepthTempTS_resampled_PDT(ts_df, PDT, y="Depth", z="Temperature",
xlim, ylim, zlim, show.colorbar=TRUE,
pal="jet", cb.xlab, cb.xlab.line=0,
pt.lwd, do_interp=TRUE, Return=FALSE, mars, tz="UTC", ...)
ts_df,PDT |
data.frames holding the time series data to be plotted, including the x-vector 'datetime' (in |
y |
character label of time series vector to be plotted (by default 'Depth'). |
z |
character label of time series vector to be plotted (by default 'Temperature'). |
bin_res |
specific argument for |
xlim |
the x limits (x1, x2) of the plot (by default range(ts_df$datetime)). |
ylim |
the y limits of the plot (by default range(ts_df[[y]])). |
zlim |
the y limits of the plot (by default range(ts_df[[z]])). |
show.colorbar |
weather a colorbar should be plotted for image plots (default is |
pal |
color map to be plotted (default is the 'jet'-colormap of the oceanmap-package. See cmap for available color maps. |
cb.xlab, cb.xlab.line |
character string indicating the label of the colorbar (default is Temperature in degrees) and |
pt.lwd |
size of points and lines. |
do_interp |
whether z-values shall be interpolated over the covered range of the time series data. The default |
Return |
whether edited time series data set should be returned (by default |
mars |
A numerical vector of the form c(bottom, left, top, right) which gives the number of lines of margin to be specified on the four sides of the plot. The default is c(5,4,4,10). |
tz |
The time zone in which the data should be illustrated (By default "UTC"). ATTENTION: The required date format of the input data is "UTC" (across all RchivalTag-functions). |
... |
additional arguments to be passed to plot_TS. |
Robert K. Bauer
plot_DepthTS, plot_TS
### load sample depth and temperature time series data from miniPAT:
ts_file <- system.file("example_files/104659-Series.csv",package="RchivalTag")
ts_df <- read_TS(ts_file)
head(ts_df)
ts_df$Serial <- ts_df$DeployID
# plot_DepthTempTS(ts_df, do_interp = FALSE)
# plot_DepthTempTS(ts_df, do_interp = TRUE)
# plot_DepthTempTS_resampled(ts_df, do_interp = TRUE) # more accurate
# ts_df$Lon <- 5; ts_df$Lat <- 43
# plot_DepthTempTS(ts_df, plot_DayTimePeriods = TRUE, xlim = unique(ts_df$date)[2:3])
# plot_DepthTempTS(ts_df, plot_DayTimePeriods = TRUE, xlim = unique(ts_df$date)[2:3])
# plot_DepthTempTS_resampled(ts_df, plot_DayTimePeriods = TRUE, xlim = unique(ts_df$date)[2:3])
# plot_DepthTempTS_resampled_PDT(ts_df, PDT, plot_DayTimePeriods = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.