ctd_bplot | R Documentation |
Plot two-dimensional CTD contours for bottom water variable by station and time
ctd_bplot(
dat_in,
var_plo,
date_col = "Date",
num_levs = 8,
expand = 200,
txt_scl = 1,
xlab = "Date",
ylab = "Channel distance (km)",
cols = c("tomato", "lightblue", "lightgreen", "green"),
ncol = 100
)
dat_in |
ctd data along the tidal axis, as a |
var_plo |
chr string of variable to plot from |
date_col |
chr string of name of date column |
num_levs |
numeric for number of contour levels |
expand |
numeric for expanding sample size of CTD points, see |
txt_scl |
numeric for scaling all text labels |
xlab |
chr string for x-axis label |
ylab |
chr string for y-axis label |
cols |
chr string of colors for the plot |
ncol |
numeric indicating degree of smoothing for the color palette |
Raw data from the CTD are vertical profiles at unique stations for more than one date. The data are linearly interpolated between dates and stations to create a two-dimensional plotting surface. The dat_in
data.frame must have at a minimum six columns for date (Date
), longitude (Long
), latitude (Lat
), station name (Station
), depth (Depth
, non-negative), and the variable to plot.
Sample dates are shown as triangles on the top and station locations are shown on the right.
The contour plot
# default plot
ctd_bplot(ctd, var_plo = 'DO')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.