| tableVisual | R Documentation |
Produce a table of the distribution of a categorical (character, labelled, haven_labelled or factor) variable.
Note that tableVisual is a visualFunction, compatible with the
visualize and makeDataReport functions.
tableVisual(v, vnam, doEval = TRUE)
v |
The variable (vector) to be plotted. |
vnam |
The name of the variable. |
doEval |
If TRUE, the table itself is returned. Otherwise, the function returns a character string containing standalone R code for producing the table. |
visualize, basicVisual, standardVisual
## Not run:
#Save a variable
myVar <- c("red", "blue", "red", "red", NA)
#Plot a variable
tableVisual(myVar, "MyVar")
#Produce code for plotting a variable
tableVisual(myVar, "MyVar", doEval = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.