esgplotts: Plot time series objects

View source: R/plots.R

esgplottsR Documentation

Plot time series objects

Description

Creates a line plot of time series data using ggplot2, with each series represented by a different color.

Usage

esgplotts(x)

Arguments

x

A time series object (ts) containing the data to plot

Details

The function converts the time series data into a format suitable for ggplot2 plotting. Each column of the time series is plotted as a separate line with a different color. The x-axis represents time/maturity and the y-axis shows the values.

Value

A ggplot2 object containing the line plot

Examples

# Create sample time series data
x <- ts(matrix(rnorm(100), 20, 5), start = 0, deltat = 0.1)

# Plot the time series
esgplotts(x)


Techtonique/ESGtoolkit documentation built on June 11, 2025, 6:24 p.m.