render_abline: create abline svg elements

Description Usage Arguments Examples

View source: R/render_abline.R

Description

creates abline elements using the syntax of abline

Usage

1
2
3
render_abline(g.view, a = NULL, b = NULL, h = NULL, v = NULL,
  reg = NULL, coef = NULL, untf = FALSE, lty = par("lty"),
  col = par("col"), lwd = par("lwd"), xlim, ylim, ...)

Arguments

g.view

an xml node that defines the view for abline

a

the intercept

b

the slope

h

the y-value(s) for horizontal line(s).

v

the x-value(s) for vertical line(s).

reg

not supported

coef

a vector of length two giving the intercept and slope.

untf

not supported

lty

line type of line(s) (passed to as.lty)

col

color of line(s)

lwd

line width NOT YET IMPLEMENTED

xlim

limits of x coordinate reference

ylim

limits of y coordinate reference

...

additional arguments passed to 'g' node or ablines individually

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(gsplot)
gs <- gsplot() %>% 
   points(y=1:11, x=1:11, 
            col="blue", pch=18, xlab='pizza', ylab='dogs') %>% 
   abline(h=1:4, v=5:8)
svg(gs)

## End(Not run)

jread-usgs/dinosvg documentation built on May 20, 2019, 10:46 a.m.