View source: R/Plot_functions.R
plot_reward | R Documentation |
Plot the reward and return the results in table
plot_reward( reward_base, week_id, sim_name_pattern = "weekly_water_amount_", constraints_values = NULL, output = FALSE )
reward_base |
A data.table contains the rewards. Obtained using the function get_Reward() |
week_id |
Numeric of length 1. number of the week to plot. |
sim_name_pattern |
the name of simulations used in |
constraints_values |
the value of the constraint |
output |
Boolean. TRUE to return the table of values with the plot. |
a ggplot
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.