Learn R Programming

rcdimple (version 0.1)

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

Description

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

Usage

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

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

Run the code above in your browser using DataLab