Description Usage Arguments Author(s)
Bubble plot based on function vaguely based on bubble
by Edzer
Pebesma in gstat package. By default, positive values have closed bubbles and
negative values have open bubbles.
1 2 3 4 5 |
x |
Vector of x-values. |
y |
Vector of y-values. |
z |
Vector of bubble sizes. |
col |
Color for bubbles. |
cexZ1 |
Character expansion (cex) value for a proportion of 1.0. |
maxsize |
Size of largest bubble. Prefered option is now an expansion factor
for a bubble with z=1 (see |
do.sqrt |
Should size be based on the area? (Diameter proportional to sqrt(z)). Default=TRUE. |
legend |
Add a legend to the plot? |
legend.z |
If a legend is added, what z values will be shown. Default is c(-3,-2,-1,.1,1,2,3) for Pearson-like quantities and a smaller range for proportions that are all less than 1. |
legend.yadj |
If a legend is added, how much should the y-axis be expanded to make space for it. |
main |
Title of plot. Default="". |
cex.main |
Charecter expansion for title. Default=1. |
xlab |
X-axis label. |
ylab |
Y-axis label. |
minnbubble |
Minimum number of unique x values below which extra space is added to horizontal axis (to make plot look better). Default = 8. |
xlim |
Optional limits on x-range. |
ylim |
Optional limits on y-range. |
axis1 |
Show the horizontal axis on plot? Option allows turning off for use in multi-figure plots. |
xlimextra |
Extra space (see minnbubble above). Default = 1. |
add |
Add bubbles to existing plot? Default=FALSE. |
las |
Style of axis labels (see ?par for more info). |
allopen |
Should all bubbles be open (instead of just negative values)? |
Ian Stewart and Ian Taylor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.