Learn R Programming

highcharter (version 0.9.4)

hc_add_series.lm: hc_add_series for lm and loess objects

Description

hc_add_series for lm and loess objects

Usage

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

# S3 method for 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.