PlotBubble(x=d.pizza$delivery_min, y=d.pizza$temperature, area=d.pizza$price/40,
xlab="delivery time", ylab="temperature",
col=SetAlpha(as.numeric(d.pizza$area)+2, .5), border="darkgrey",
na.rm=TRUE, main="Price-Bubbles", panel.first=grid())
BubbleLegend("bottomleft", frame=TRUE, cols=SetAlpha("steelblue",0.5), bg="green",
radius = c(10, 5, 2)/2, labels=c(10, 5, 2), cex=0.8,
cols.lbl=c("yellow", "red","blue"), width=12)
PlotBubble(latitude ~ longitude, area=(smoky+1)*2e8,
col=SetAlpha(1, 0.5), data=d.whisky)
Run the code above in your browser using DataLab