Description Usage Arguments Value Examples
function to plot the number of dejection versus date
1 2 3 4 5 6 7 | dejection_graph(
dataframe = NULL,
granularity = "Hour",
dejection_type = c("Urin", "Poop", "Vomit"),
mean_plot = FALSE,
birthdate = NULL
)
|
dataframe |
The dataframe containing the data you want to use |
granularity |
The granularity you want to use. For the moment it is hour or day. |
dejection_type |
Dejection type. Choose between "Urin", "Poop" and "Vomit". Defaut is all of them. |
mean_plot |
Boolean to plot mean with granularity one step higher than the asked one. |
birthdate |
The birthdate of the child. If NULL we assume that this is the first day of the dataframe. Defaut is NULL |
graphic plotly object
1 2 3 4 5 | dummy_data <- utils::read.csv(file.path(system.file("extdata", package = "NewBoRn"),
"dummy_data.csv"))
dummy_data <- dplyr::select(.data = dummy_data, -X)
dejection_graph(dataframe = dummy_data)
dejection_graph(dataframe = dummy_data, granularity = "Day", dejection_type = "Urin")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.