fortify.ctd: Prepare 'oce' objects as data frames for 'ggplot2'

Description Usage Arguments Value Examples

View source: R/fortify.R

Description

Prepare 'oce' objects as data frames for 'ggplot2'

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'ctd'
fortify(model, ..., which = c("combined", "data", "metadata"))

## S3 method for class 'section'
fortify(model, ..., which = c("combined", "data", "metadata"))

## S3 method for class 'adp'
fortify(model, ..., which = c("velocity", "bottom_track", "metadata"))

Arguments

model

An 'oce' object

...

Additional columns/values to initialize. Tidy evaluation is supported.

which

Most objects can be summarised as data frames at several levels of granularity. The default is the most useful for plotting.

Value

A tibble::tibble()

Examples

1
2
3
library(ggplot2)
data(ctd, package = "oce")
fortify(ctd)

paleolimbot/ggoce documentation built on Dec. 22, 2021, 6:38 a.m.