set_bounds: Set the bounds or size of the chart within the svg container.

Description Usage Arguments See Also Examples

Description

The chart size can be set independently from the size of the containing node.

Usage

1
set_bounds(viz, x, y, width, height)

Arguments

viz

a dimple object

x

value in pixels where the chart starts on the left

y

value in pixels where the chart starts on the bottom

width

value in pixels of the width of chart. Note this is not the right edge. Rather the right edge will be x + width.

height

height value in pixels of the height of chart. Note this is not the top. Rather the top will be y + height.

See Also

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

Examples

1
2
3
ChickWeight %>%
  dimple( weight ~ Time, groups = "Diet", type = "bubble", width = 600, height = 600 ) %>%
  setBounds( x = 200, y = 100, width = 250, height = 300 )

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