plot_extreme: plot_extreme

Description Usage Arguments Value Examples

View source: R/plot_extreme.R

Description

Graphs a line plot of a row with the highest measure in a matrix, produced by daily_response function.

Usage

1
plot_extreme(result_daily_response, title = TRUE)

Arguments

result_daily_response

a list with three objects as produced by daily_response function

title

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

Value

A ggplot2 object containing the plot display

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## 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",
fixed_width = 90, previous_year = TRUE)
plot_extreme(Example1)

Example2 <- daily_response(response = example_proxies_1,
env_data = daily_temperatures_example, method = "brnn",
measure = "adj.r.squared", lower_limit = 50, upper_limit = 55, neurons = 1)
plot_extreme(Example2)

#' # Example with negative correlations
data(example_proxies_2)
daily_temperatures_example_subset = daily_temperatures_example[-c(53:55), ]
Example3 <- daily_response(response = example_proxies_2,
env_data = daily_temperatures_example_subset, method = "cor",
lower_limit = 35, upper_limit = 40)
plot_extreme(Example3)

## End(Not run)

dendroExtra documentation built on Aug. 4, 2017, 5:03 p.m.