View source: R/rvn_utilities.R
rvn_fortify_xts | R Documentation |
Applies the fortify function to an xts object and updates the Index character column to a date column called 'Date'.
rvn_fortify_xts(x)
x |
xts formatted object to fortify to tibble |
Useful in preparing data to plotting or other tidy-style analysis. This function is used internally in many RavenR plotting functions.
tibble format of the xts data
ff <- system.file("extdata","run1_Hydrographs.csv", package="RavenR")
hyd <- rvn_hyd_read(ff)$hyd
hyd_fortified <- rvn_fortify_xts(hyd)
head(hyd_fortified)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.