rawDist
object.
"plot"(x, ..., sample.name = "keep", spot.type = "id", spot.size = 2, spot.color = NULL, main.type = "all", color.palette = colorRampPalette(c("blue", "cyan", "yellow", "red"), bias = 1)(100), highlight.gbs = NULL, highlight.col = "red")
rawDist
object"id"
, "value"
, and "idvalue"
) indicating how sample spots should be plotted. Defaults to "id"
, which plots sample spot numbers within open circles. The size of the circles can be controlled using the spot.size
argument. The option "value"
results to a sample map where the color of circles is related to a value through assign.value
function. The color scale can be set using the color.palette
argument, and size of the symbols (pch = 21) and through the spot.size
argument. The option "idvalue"
combines "id"
and "value"
leading to a sample map with sample spot numbers."actual"
indicating the size (cex
) of points. If "actual"
, the actual size and shape of sample spots will be plotted. In this case, sample spot size information is required. Defaults to 2 meaning that sample spots are plotted as points with pch = 21 and cex = 2.NULL
(default) a preset set of colors will be used."all"
, "axis"
, "ends"
, and "none"
) indicating how the distance / main axis should be plotted. Defaults to "all"
indicating that both the main axis and end points should be plotted. If "axis"
only the main axis will be plotted. If "ends"
only the end points will be plotted, and if "none"
the main axis intormation will not be plotted.spot.type
options. Passed to colorRampPalette
.NULL
(default) all growth bands will be drawn using the standard color.highlight.gbs
).plot
). Plotting sample maps is carried out by the sclero:::samplemap
function, which works as an internal function and therefore has not been exported. Users willing to modify sclero plots beyond the flexibility allowed by the plot.rawDist
function are instructed to modify the samplemap
function, which consists of standard R graphics syntax. It should be noted that the samplemap
(and therefore also the plot.rawDist
) function calls for the layout
function every time the arguments spot.type = "value"
or spot.type = "idvalue"
are used. Consequently, the graphics window is divided into two regions that might cause issues when combining sclero plots with other graphics. The users are adviced to consider the graphics window resetting procedure specified in layout
examples.Because the function plots a sample map, the aspect ratio is forced to 1 and cannot be changed. If this causes troubles when trying to set the axis limits (ylim
and xlim
), try resizing the graphics window.
convert.ijdata
for converting the coordinate information to spatstat point patterns. read.ijdata
for reading zip files containing ImageJ ROIs.
plot.spotDist
for plotting spotDist
objects.
plot.default
and other methods; points
, lines
, par
.
data(shellspots)
shell_map <- convert.ijdata(shellspots)
plot(shell_map)
Run the code above in your browser using DataLab