Learn R Programming

rMR (version 1.1.0)

plotRaw: Plotting Data from Witrox

Description

A good way to visualize your respiro data to get an idea of where to set up the time intervals in functions like MR.loops() or get.pcrit().

Usage

plotRaw(data, DO.var.name, time.var.name = "std.time",
             start.time = data$x[1],
             end.time = data$x[length(data$x)],...)

Arguments

data

data object for plotting

DO.var.name

A character string matching the column header for the DO variable column.

time.var.name

Column name of time (or x) axis in character class.

start.time

Character string specifying left bound x limit in strptime compatable format.

end.time

Character string specifying right bound x limit in strptime compatable format.

Arguments passed on to internal functions.

Value

Plot showing the overall metabolic data

Details

start.time and end.time arguments must match the time.var.name column's format for date time.

See Also

plot, strptime, get.pcrit, MR.loops,

Examples

Run this code
# NOT RUN {
## load data ##

data(fishMR)
## create time variable in POSIXct format ##
fishMR$std.time <- as.POSIXct(fishMR$Date.time,
                    format = "%d/%m/%Y %I:%M:%S %p")

plotRaw(data = fishMR, DO.var.name = "DO.mgL",
         start.time = "2015-07-03 06:15:00",
         end.time = "2015-07-03 08:05:00")
         
plotRaw(fishMR, DO.var.name = "DO.mgL",
         start.time = "2015-07-03 01:00:00",
         end.time = "2015-07-03 05:12:00")

# }

Run the code above in your browser using DataLab