TealReportCard | R Documentation |
TealReportCard
Child class of ReportCard
that is used for teal
specific applications.
In addition to the parent methods, it supports rendering teal
specific elements such as
the source code, the encodings panel content and the filter panel content as part of the
meta data.
teal.reporter::ReportCard
-> TealReportCard
teal.reporter::ReportCard$append_content()
teal.reporter::ReportCard$append_metadata()
teal.reporter::ReportCard$append_plot()
teal.reporter::ReportCard$append_rcode()
teal.reporter::ReportCard$append_table()
teal.reporter::ReportCard$append_text()
teal.reporter::ReportCard$from_list()
teal.reporter::ReportCard$get_content()
teal.reporter::ReportCard$get_metadata()
teal.reporter::ReportCard$get_name()
teal.reporter::ReportCard$initialize()
teal.reporter::ReportCard$reset()
teal.reporter::ReportCard$set_name()
teal.reporter::ReportCard$to_list()
append_src()
Appends the source code to the content
meta data of this TealReportCard
.
TealReportCard$append_src(src, ...)
src
(character(1)
) code as text.
...
any rmarkdown
R
chunk parameter and its value.
But eval
parameter is always set to FALSE
.
Object of class TealReportCard
, invisibly.
card <- TealReportCard$new()$append_src( "plot(iris)" ) card$get_content()[[1]]$get_content()
append_fs()
Appends the filter state list to the content
and metadata
of this TealReportCard
.
If the filter state list has an attribute named formatted
, it appends it to the card otherwise it uses
the default yaml::as.yaml
to format the list.
If the filter state list is empty, nothing is appended to the content
.
TealReportCard$append_fs(fs)
fs
(teal_slices
) object returned from teal_slices()
function.
self
, invisibly.
append_encodings()
Appends the encodings list to the content
and metadata
of this TealReportCard
.
TealReportCard$append_encodings(encodings)
encodings
(list
) list of encodings selections of the teal
app.
self
, invisibly.
card <- TealReportCard$new()$append_encodings(list(variable1 = "X")) card$get_content()[[1]]$get_content()
clone()
The objects of this class are cloneable with this method.
TealReportCard$clone(deep = FALSE)
deep
Whether to make a deep clone.
## ------------------------------------------------
## Method `TealReportCard$append_src`
## ------------------------------------------------
card <- TealReportCard$new()$append_src(
"plot(iris)"
)
card$get_content()[[1]]$get_content()
## ------------------------------------------------
## Method `TealReportCard$append_encodings`
## ------------------------------------------------
card <- TealReportCard$new()$append_encodings(list(variable1 = "X"))
card$get_content()[[1]]$get_content()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.