View source: R/shape_properties.R
sp_line | R Documentation |
Create a sp_line
object that describes
line properties.
sp_line(
color = "transparent",
lwd = 1,
lty = "solid",
linecmpd = "sng",
lineend = "rnd",
linejoin = "round",
headend = sp_lineend(type = "none"),
tailend = sp_lineend(type = "none")
)
## S3 method for class 'sp_line'
print(x, ...)
## S3 method for class 'sp_line'
update(
object,
color,
lwd,
lty,
linecmpd,
lineend,
linejoin,
headend,
tailend,
...
)
color |
line color - a single character value specifying a valid color (e.g. "#000000" or "black"). |
lwd |
line width (in point) - 0 or positive integer value. |
lty |
single character value specifying the line type.
Expected value is one of the following : default |
linecmpd |
single character value specifying the compound line type.
Expected value is one of the following : default |
lineend |
single character value specifying the line end style
Expected value is one of the following : default |
linejoin |
single character value specifying the line join style
Expected value is one of the following : default |
headend |
a |
tailend |
a |
x , object |
|
... |
further arguments - not used |
a sp_line
object
sp_lineend
Other functions for defining shape properties:
sp_lineend()
sp_line()
sp_line(color = "red", lwd = 2)
sp_line(lty = "dot", linecmpd = "dbl")
print( sp_line (color="red", lwd = 2) )
obj <- sp_line (color="red", lwd = 2)
update( obj, linecmpd = "dbl" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.