Browse files

minor tweak

  • Loading branch information...
1 parent f05cb0f commit a6f57b38ca37612cfb7d8f213e3166b69770f21e @tavisrudd committed Mar 25, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 cellphone_subscriptions_timeseries.R
View
6 cellphone_subscriptions_timeseries.R
@@ -27,12 +27,12 @@ chart.world.bank.celldata <- function (indicator="IT.CEL.SETS.P2",
print(chart)
}
+chart.world.bank.celldata() # plots to screen
+
+################################################################################
plot.to.png <- function (chart.callback, filename, width=1200, height=800) {
chart.dev <- CairoPNG(filename=filename, width=width, height=height, bg="white")
chart.callback()
dev.off(chart.dev)
}
-
-chart.world.bank.celldata() # plots to screen
-
plot.to.png(chart.world.bank.celldata, "cellphone_chart.png")

0 comments on commit a6f57b3

Please sign in to comment.