nt_profileplot: Profile plot

View source: R/profileplot.R

nt_profileplotR Documentation

Profile plot

Description

Plot profile plot for several variables.

Usage

nt_profileplot(
  data,
  time = NULL,
  group = NULL,
  labels = NULL,
  save = FALSE,
  fig.height = 5,
  fig.width = 5,
  std_fun = std_profileplot,
  std_fun_group = std_profileplot_group
)

Arguments

data

a data frame with the variables.

time

a character value indicating the time variable.

group

a character value indicating the group variable.

labels

a list of labels with components given by their variable names.

save

a logical value indicating whether the output should be saved as a jpeg file.

fig.height

a numeric value indicating the height (in) of the file.

fig.width

a numeric value indicating the width (in) of the file.

std_fun

a function to plot a profile plot when group = NULL. It must follow the same structure of std_profileplot.

std_fun_group

a function to plot a profile plot when group is provided. It must follow the same structure of std_profileplot_group.

Details

The functions std_profileplot and std_profileplot_group can be modified by the user in order to customize the profile plots a prior. The plots also can be modified a posterior as a regular ggplot object. See geom_errorbar, std_profileplot and std_profileplot_group.

Value

a list of ggplot objects with each item named by the column names from var.


dnzmarcio/ntimes documentation built on Jan. 4, 2024, 2:23 p.m.