View source: R/plotMollierHxDiagram.R
plotMollierHx | R Documentation |
Plot a D3 Mollier hx Diagram with scatter plot and comfort zone
plotMollierHx(
data,
graphTempMin = 10,
graphTempMax = 30,
graphHumAbsMin = 0,
graphHumAbsMax = 0.017,
altitude = 500,
cmfZoneTempMin = 20,
cmfZoneTempMax = 26,
cmfZoneHumRelMin = 30,
cmfZoneHumRelMax = 65,
cmfZoneHumAbsMin = 0,
cmfZoneHumAbsMax = 0.0115
)
data |
Dataset to use for scatter plot. Must be a data.frame with "datetime, temperature degree celsius, humidity %rH" |
graphTempMin |
Graph temperature minimum on y-axis in degree celsius, default 10.0 |
graphTempMax |
Graph temperature maximum on y-axis in degree celsius, default 30.0 |
graphHumAbsMin |
Graph humidity minimum on x-axis in kg/kg, default 0.0 |
graphHumAbsMax |
Graph humidity maximun on x-axis in kg/kg, default 0.017 |
altitude |
Altitude in meters above sea level to calculate pressure, default 500 |
cmfZoneTempMin |
Comfort zone temperature minimum in degree celsius, default 20.0 |
cmfZoneTempMax |
Comfort zone temperature maximum in degree celsius, default 26.0 |
cmfZoneHumRelMin |
Comfort zone humidity minimum in %rH, default 30.0 |
cmfZoneHumRelMax |
Comfort zone humidity maximum in %rH, default 65.0 |
cmfZoneHumAbsMin |
Comfort zone humidity minimum in kg/kg, default 0.0 |
cmfZoneHumAbsMax |
Comfort zone humidity maximum in kg/kg, default 0.0115. Also called sultriness limit (de: Schwülgrenze) |
Returns a r2d3 plot
library(redutils)
library(r2d3)
library(dplyr)
data <- readRDS(system.file("sampleData/flatTempHum.rds", package = "redutils"))
plotMollierHx(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.