Learn R Programming

dendroExtra (version 0.0.2)

plot_heatmap: plot_heatmap

Description

Graphs a heatmap of values stored in a matrix, such as produced by daily_response function.

Usage

plot_heatmap(result_daily_response)

Arguments

result_daily_response

a list with three objects as produced by daily_response function

Value

A ggplot2 object containing the heatmap 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",
fixed_width = 90, previous_year = TRUE)
plot_heatmap(Example1)

Example2 <- daily_response(response = example_proxies_1,
env_data = daily_temperatures_example, method = "lm",
measure = "adj.r.squared", lower_limit = 50, upper_limit = 55)
plot_heatmap(Example2)
# }

Run the code above in your browser using DataLab