ts_median_excess_plt {healthyR} | R Documentation |
Create a plot showing the excess of the median value
Description
Plot out the excess +/- of the median value grouped by certain time parameters.
Usage
ts_median_excess_plt(
.data,
.date_col,
.value_col,
.x_axis,
.ggplot_group_var,
.years_back
)
Arguments
.data |
The data that is being analyzed, data must be a tibble/data.frame. |
.date_col |
The column of the tibble that holds the date. |
.value_col |
The column that holds the value of interest. |
.x_axis |
What is the be the x-axis, day, week, etc. |
.ggplot_group_var |
The variable to group the ggplot on. |
.years_back |
How many yeas back do you want to go in order to compute the median value. |
Details
Supply data that you want to view and you will see the excess +/- of the median values over a specified time series tibble.
Value
A ggplot2
plot
See Also
Other Plotting Functions:
diverging_bar_plt()
,
diverging_lollipop_plt()
,
gartner_magic_chart_plt()
,
los_ra_index_plt()
,
ts_alos_plt()
,
ts_plt()
,
ts_readmit_rate_plt()
Examples
suppressPackageStartupMessages(library(timetk))
ts_signature_tbl(
.data = m4_daily
, .date_col = date
) %>%
ts_median_excess_plt(
.date_col = date
, .value_col = value
, .x_axis = month
, .ggplot_group_var = year
, .years_back = 1
)
[Package healthyR version 0.2.2 Index]