ggiraph (version 0.6.0)

interactive_path_grob: Generate interactive grob paths

Description

This function can be used to generate interactive grob paths

Usage

interactive_path_grob(x, y, id = NULL, id.lengths = NULL,
  rule = "winding", tooltip = NULL, onclick = NULL, data_id = NULL,
  default.units = "npc", name = NULL, gp = gpar(), vp = NULL)

Arguments

x

A numeric vector or unit object specifying x-locations.

y

A numeric vector or unit object specifying y-locations.

id

A numeric vector used to separate locations in x and y into sub-paths. All locations with the same id belong to the same sub-path.

id.lengths

A numeric vector used to separate locations in x and y into sub-paths. Specifies consecutive blocks of locations which make up separate sub-paths.

rule

A character value specifying the fill rule: either "winding" or "evenodd".

tooltip

tooltip associated with polygons

onclick

javascript action to execute when polygon is clicked

data_id

identifiers to associate with polygons

default.units

A string indicating the default units to use if x or y are only given as numeric vectors.

name

A character identifier.

gp

An object of class gpar, typically the output from a call to the function gpar. This is basically a list of graphical parameter settings.

vp

A Grid viewport object (or NULL).