R/type_area.R

Defines functions type_area

type_area = function(datapoints) {
  datapoints$ymax = datapoints$y
  datapoints$ymin = rep.int(0, nrow(datapoints))
  out = list(
    datapoints = datapoints,
    ymax = datapoints$ymax,
    ymin = datapoints$ymin,
    type = "ribbon"
  )
  return(out)
}

Try the tinyplot package in your browser

Any scripts or data that you put into this service are public.

tinyplot documentation built on Sept. 11, 2024, 7:12 p.m.