placesvg: Draws a pointsvg object

View source: R/placesvg.R

placesvgR Documentation

Draws a pointsvg object

Description

Draws a svg object imported as data frame using pointsvg, with its importation coordinates (or with standardisation).

Usage

placesvg(
  object,
  forget = NULL,
  front = NULL,
  back = NULL,
  standard = FALSE,
  keep.ratio = FALSE,
  col = NA,
  border = "black",
  density = NULL,
  angle = 45,
  lwd = par("lwd"),
  lty = par("lty"),
  scol = border,
  slty = lty,
  slwd = lwd
)

Arguments

object

a pointsvg object (svg object imported as data frame using pointsvg).

forget

the elements that should be discarded, by their id or index (i.e. name or number of appearance).

front, back

the elements to be put in front and back position, by their id or index (i.e. name or number of appearance). By default the order is the one of the original .svg file.

standard

whether to standardise (centre to (0,0), rescale so that extreme points are at -1 and 1) or not (T or F)

keep.ratio

if the object is to be standardised, whether to keep the x/y ratio (T or F)

col

the polygones background color. If density is specified with a positive value this gives the color of the shading lines.

border

the lines color.

density

the density of shading lines, in lines per inch. The default value of NULL means that no shading lines are drawn.

angle

the slope of shading lines, given as an angle in degrees (counter-clockwise)

lty, lwd

the border line type and width, see ?par for details.

scol, slty, slwd

the colour, type and width of the shading lines.

See Also

centresvg and framesvg

Examples

object <- example.ammonite

plot(c(-2,2), c(-2,2), type = "n")

placesvg(object, lty = 1,density = 20, angle = 45)


StratigrapheR documentation built on July 9, 2023, 6:02 p.m.