Learn R Programming

nmfem (version 1.0.5)

display_profile: Display 3D profiles

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

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 http://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

Run this code
# NOT RUN {
display_profile(travelers[sample(nrow(travelers),1), ], numclient = TRUE)
# }

Run the code above in your browser using DataLab