hc_add_series.lm: hc_add_series for lm and loess objects

Description Usage Arguments

View source: R/highcharts-api-add.R

Description

hc_add_series for lm and loess objects

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## S3 method for class 'lm'
hc_add_series(
  hc,
  data,
  type = "line",
  color = "#5F83EE",
  fillOpacity = 0.1,
  ...
)

## S3 method for class 'loess'
hc_add_series(
  hc,
  data,
  type = "line",
  color = "#5F83EE",
  fillOpacity = 0.1,
  ...
)

Arguments

hc

A highchart htmlwidget object.

data

A lm or loess object.

type

The type of the series: line, spline.

color

A stringr color.

fillOpacity

fillOpacity to the confidence interval.

...

Arguments defined in https://api.highcharts.com/highcharts/chart.


highcharter documentation built on Jan. 3, 2022, 5:08 p.m.