Vehicles | R Documentation |
Vehicles
returns a tranformed object with class "Vehicles" and units
'veh'. The type of objects supported are of classes "matrix", "data.frame",
"numeric" and "array". If the object is a matrix it is converted to data.frame.
If the object is "numeric" it is converted to class "units".
Vehicles(x, ..., time = NULL)
## S3 method for class 'Vehicles'
print(x, ...)
## S3 method for class 'Vehicles'
summary(object, ...)
## S3 method for class 'Vehicles'
plot(
x,
pal = "colo_lightningmccarl_into_the_night",
rev = TRUE,
bk = NULL,
fig1 = c(0, 0.8, 0, 0.8),
fig2 = c(0, 0.8, 0.55, 1),
fig3 = c(0.7, 1, 0, 0.8),
mai1 = c(1, 0.82, 0.82, 0.42),
mai2 = c(1.8, 0.82, 0.5, 0.42),
mai3 = c(1, 1, 0.82, 0.2),
bias = 1.5,
...
)
x |
Object with class "Vehicles" |
... |
ignored |
time |
Character to be the time units as denominator, eg "1/h" |
object |
Object with class "Vehicles" |
pal |
Palette of colors available or the number of the position |
rev |
Logical; to internally revert order of rgb color vectors. |
bk |
Break points in sorted order to indicate the intervals for assigning the colors. |
fig1 |
par parameters for fig, |
fig2 |
par parameters for fig, |
fig3 |
par parameters for fig, |
mai1 |
par parameters for mai, |
mai2 |
par parameters for mai, |
mai3 |
par parameters for mai, |
bias |
positive number. Higher values give more widely spaced colors at the high end. |
Objects of class "Vehicles" or "units"
## Not run:
lt <- rnorm(100, 300, 10)
class(lt)
vlt <- Vehicles(lt)
class(vlt)
plot(vlt)
LT_B5 <- age_hdv(x = lt,name = "LT_B5")
summary(LT_B5)
plot(LT_B5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.