visualize | R Documentation |
This function works with single or multiple columns. When given an array of multiple columns as columns
argument, all nonnumeric columns are converted to numeric class in the plot. This function creates a combined plot with individual plots for each identified group (if the group_by
was used) in the current data set. Any supplied arguments other than the ones described are passed on to the plotting functions.
visualize(av_state, columns, ...)
av_state |
an object of class |
columns |
specifies the columns to be displayed. When given the name of a single column, the function behaves differently depending on the class of the column:
|
... |
Other parameters passed on to the plot functions.
When the |
## Not run: av_state <- load_file("../data/input/RuwedataAngela.sav",log_level=3) av_state <- add_derived_column(av_state,'sum_minuten_licht', c('minuten_woonwerk','minuten_werk_licht', 'minuten_licht_huishouden')) av_state <- add_derived_column(av_state,'sum_minuten_zwaar', c('minuten_zwaarhuishouden','minuten_zwaar_werk')) visualize(av_state,c('sum_minuten_licht','sum_minuten_zwaar', 'minuten_vrijetijd','minuten_sport'), labels=c('licht werk','zwaar werk','vrije tijd','sport'), type='BAR',horiz=TRUE) visualize(av_state,c('sum_minuten_licht','sum_minuten_zwaar', 'minuten_vrijetijd','minuten_sport'), type='DOT',xlab='minuten') visualize(av_state,c('sum_minuten_licht','sum_minuten_zwaar', 'minuten_vrijetijd','minuten_sport')) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.