geom_sparkline: Sparkline layer for each map point

View source: R/sparklines.R

geom_sparklineR Documentation

Sparkline layer for each map point

Description

Plots a minimalist time series line chart at each coordinate provided

Usage

geom_sparkline(
  mapping = ggplot2::aes(),
  data = NULL,
  stat = "sf",
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  ...
)

Arguments

mapping

Set of aesthetic mappings created by aes() or aes_(). If specified and inherit.aes = TRUE (the default), it is combined with the default mapping at the top level of the plot. You must supply mapping if there is no plot mapping.

data

The data to be displayed in this layer

stat

The statistical transformation to use on the data for this layer, as a string.

position

Position adjustment, either as a string, or the result of a call to a position adjustment function.

na.rm

If FALSE, the default, missing values are removed with a warning. If TRUE, missing values are silently removed.

show.legend

logical. Should this layer be included in the legends? NA, the default, includes if any aesthetics are mapped. FALSE never includes, and TRUE always includes.

inherit.aes

If FALSE, overrides the default aesthetics, rather than combining with them.

...

Other arguments passed on to layer().

Details

'geom_sparkline' plots a small time series chart on points on an 'sf' map.

Value

A sparkline layer


iNZightVIT/iNZightMaps documentation built on May 4, 2024, 6:17 a.m.