visualize.classcodes | R Documentation |
Groups from a classcodes
object are visualized by their regular expressions
in the default web browser.
The visualization does not give any details on group names, conditions or
weights but might be useful both for understanding of a classification scheme
in use, and during the creation and debugging of such.
## S3 method for class 'classcodes' visualize(x, group = NULL, show = TRUE, ...)
x |
classcodes object or name of such object included in the package
(see |
group |
names (as character vector) of groups to visualize
(subset of |
show |
should a visualization be shown in the default web browser.
Set to |
... |
Arguments passed on to
|
URL to website with visualization (invisible)
Other classcodes:
all_classcodes()
,
as.data.frame.classified()
,
classcodes
,
codebook()
,
print.classcodes()
,
print.classified()
,
set_classcodes()
,
summary.classcodes()
# The default behavior is to open a visualization in the default web browser ## Not run: # How is depression classified according to Elixhauser? visualize("elixhauser", "depression") # Compare the two diabetes groups according to Charlson visualize("charlson", c("diabetes without complication", "diabetes complication")) # Is this different from the "Royal College of Surgeons classification? # Yes, there is only one group for diabetes visualize("charlson", c("diabetes without complication", "diabetes complication"), regex = "rcs" ) # Show all groups from Charlson visualize("charlson") # It is also possible to visualize an arbitrary regular expression # from a character string visualize("I2([12]|52)") ## End(Not run) # The URL is always returned (invisable) but the visual display can # also be omitted url <- visualize("hip_ae", show = FALSE) url
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.