add_legend: Add a legend to a dimple chart

Description Usage Arguments See Also Examples

Description

Parameters provided should match those for dimple.legend constructor. If incomplete parameters are provided then some sane defaults will be applied.

Usage

1

Arguments

x
y
width
height
horizontalAlign

See Also

Other dimple: add_title; default_colors; dimple; facet.dimple; set_bounds; xAxis.dimple, yAxis.dimple, zAxis.dimple

Examples

1
2
3
4
5
dimple( weight ~ Time, groups = "Diet" , type = "line", data = ChickWeight, width = 600, height = 400 ) %>%
  add_legend( )

dimple( weight ~ Time, groups = "Diet" , type = "line", data = ChickWeight, width = 600, height = 400 ) %>%
  add_legend( x = 50, y = 390, width = 500, horizontalAlign = "right" )

timelyportfolio/rcdimple documentation built on May 31, 2019, 2:02 p.m.