display_profile: Display 3D profiles

Description Usage Arguments Value Examples

View source: R/display_profile.R

Description

This function display profiles of 3 dimensions (day, hour, number of observations). It has been created to display profiles from the nmfem package data.

Usage

1
2
3
4
5
6
7
display_profile(
  profile,
  numclient = FALSE,
  color = "Blues",
  language = "en",
  theme = "dark"
)

Arguments

profile

a vector or a matrix row containing the profile to display. The day/hour data are contained in the column names.

numclient

logical. Whether the first value of the row is an identifier.

color

color of the display. Possibilities are the ones provided by colorbrewer2.org.

language

in which language the day/hour names are written. For now, the possibilities are "en" for english and "fr" for french.

theme

A theme to use. The only valid values are "" and "dark".

Value

Creates a 3D-heatmap displayed in the Viewer tab.

Examples

1
display_profile(travelers[sample(nrow(travelers),1), ], numclient = TRUE)

LenaCarel/nmfem documentation built on Dec. 4, 2019, 12:14 p.m.