Learn R Programming

dendroExtra (version 0.0.2)

plot_specific: plot_specific

Description

Graphs a line plot of a row with a selected window width in a matrix, produced by daily_response function.

Usage

plot_specific(result_daily_response, window_width, title = TRUE)

Arguments

result_daily_response

a list with three objects as produced by daily_response function

window_width

integer representing window width to be displayed

title

logical, if set to FALSE, no plot title is displayed

Value

A ggplot2 object containing the plot display

Examples

Run this code
# NOT RUN {
data(daily_temperatures_example)
data(example_proxies_1)
Example1 <- daily_response(response = example_proxies_1,
env_data = daily_temperatures_example, method = "lm", measure = "r.squared",
lower_limit = 90, upper_limit = 150)
plot_specific(Example1, window_width = 90)

Example2 <- daily_response(response = example_proxies_1,
env_data = daily_temperatures_example, method = "brnn",
measure = "adj.r.squared", lower_limit = 150, upper_limit = 155,
neurons = 1)
plot_specific(Example2, window_width = 153, title = TRUE)
# }

Run the code above in your browser using DataLab