plot_model: Handles plotting lines for parameter models

Description Usage Arguments See Also

View source: R/plots.R

Description

This function returns a line plot.

Usage

1
2
plot_model(x, model, B, cp1, cp2, energy, pre_key = 0, unit,
  p1 = plot_ly())

Arguments

x

A vector (OAT).

model

A character string. Model: '2P', '3PC', '3PH', '4P', or '5P'.

B

A matrix, either 2 by 1 or 3 by 1 matrix. B[1] = y-value at cp1 (and cp2), B[2] = slope (if there are two slopes, this is the leftmost slope), B[3] = slope (if there are two slopes, this is the rightmost slope)

cp1

A numeric value. If there are two change-points, this is the leftmost change-point.

cp2

A numeric value. If there are two change-points, this is the rightmost change-point. If there is only one change-point, set this to be NA.

energy

A character string. Energy type, either 'Elec' or 'Fuel'.

pre_key

A numeric value. 0 for unretrofit, 1 for pre-retrofit and 3 for post-retrofit. Defaults to 0.

unit

A boolean value. Determines whether or not to convert kWh to BTU.

p1

A plotly object. Defaults to plot_ly().

See Also

plot_point


tinnaing347/bRema documentation built on Aug. 23, 2019, 9:15 p.m.