milk_feeding_graph: milk_feeding_graph

Description Usage Arguments Value Examples

View source: R/graph.R

Description

Graph to survey milk feeding versus time

Usage

1
2
3
4
5
6
milk_feeding_graph(
  dataframe = NULL,
  granularity = "Hour",
  mean_plot = FALSE,
  birthdate = NULL
)

Arguments

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.

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

Value

graphic plotly object

Examples

1
2
3
4
dummy_data <- utils::read.csv(file.path(system.file("extdata", package = "NewBoRn"),
"dummy_data.csv"))
dummy_data <- dplyr::select(.data = dummy_data, -X)
milk_feeding_graph(dataframe = dummy_data)

jcorain/NewBoRn documentation built on Feb. 2, 2021, 11:50 a.m.