Skip to content

Instantly share code, notes, and snippets.

@mages
Created March 4, 2012 12:37
Show Gist options
  • Save mages/1972820 to your computer and use it in GitHub Desktop.
Save mages/1972820 to your computer and use it in GitHub Desktop.
Bubble chart: Gradient colour example
## Gradient colour example
library(googleVis)
bubbleChart <- gvisBubbleChart(Fruits, idvar="Fruit", xvar="Sales",
yvar="Expenses", sizevar="Profit",
options=list(hAxis='{minValue:75,
maxValue:125}',
width=500, height=300,
colorAxis="{colors: ['lightblue', 'blue']}"),
chartid="Bubble_Chart_colour_Axis"
)
plot(bubbleChart)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment