as_ld_yml {listdown} | R Documentation |
Turn a Computational Component List into YAML with Class Information
Description
Create an object of type yaml::yml from a list of computational components. The function recursively descends into the list and when an element type is not a list the class information substituted for the object.
Usage
as_ld_yml(x)
Arguments
x |
a named list of computational components. |
Value
A yaml string with the structure of a 'listdown' object.
Examples
if (require("ggplot2")) {
cc_list <- list(
Linear = ggplot(anscombe, aes(x = x1, y = y1)) + geom_point(),
`Non Linear` = ggplot(anscombe, aes(x = x2, y = y2)) + geom_point(),
`Outlier Vertical`= ggplot(anscombe, aes(x = x3, y = y3)) + geom_point(),
`Outlier Horizontal` = ggplot(anscombe, aes(x = x4, y = y4)) +
geom_point())
as_ld_yml(cc_list)
}
[Package listdown version 0.5.7 Index]