The function allows to generate a bubble plot of a given variable. If the parameter range is not provided, the function estimates the coordinate range of the plot using the points' coordinates extension.
Usage
bubbleplot(x, y, data, variable, range = NA,inches=0.1, interval = "equal",
land=countries, d1 = depth_1, d2= depth_2, d3 = depth_3)
Arguments
x
the x coordinates (longitude) of points in the plot.
y
the y coordinates (latitude) of points in the plot.
data
data frame containing thae variable to be plotted
variable
character value of the variable name in data
range
vector of the coordinates limits of the plot in the form of c(xmin,xmax, ymin,ymax).
inches
maximum dimension of the circles expressed in inches.
interval
character variable indicating the type of breaks to be computed for the five value levels. Allowed values: "equal" and "quantiles".
land
shapefile of the world's land
d1
shapefile of the 50m bathymetrical line
d2
shapefile of the 200m bathymetrical line
d3
shapefile of the 800m bathymetrical line
Value
The function returns the bubble plot map of a given variable in a selected range of coordinates.
# NOT RUN {library(MEDITS)
m <- MEDITS.to.dd(TA)
bubbleplot(x=m$SHOOTING_LONGITUDE, y=m$SHOOTING_LATITUDE,
m, "SHOOTING_DEPTH",interval="quantiles", range=c(12,17,38,42))
# }