Learn R Programming

visdat (version 0.0.7.9000)

vis_dat_ly: Interactive plot of data in plotly

Description

This makes vis_dat interactive using plotly. At the moment this is an initial implementation that just wraps plotly::ggplotly() around vis_dat.

Usage

vis_dat_ly(x, sort_type = TRUE, palette = "default")

Arguments

x

a data.frame object

sort_type

logical TRUE/FALSE. When TRUE (default), it sorts by the type in the column to make it easier to see what is in the data

palette

character "default", "qual" or "cb_safe". "default" (the default) provides the stock ggplot scale for separating the colours. "qual" uses an experimental qualitative colour scheme for providing distinct colours for each Type. "cb_safe" is a set of colours that are appropriate for those with colourblindness. "qual" and "cb_safe" are drawn from http://colorbrewer2.org/.

Value

plotly interactive plot, similar in appearance to vis_dat

See Also

vis_dat() vis_miss() vis_miss_ly() vis_guess() vis_compare()

Examples

Run this code
# NOT RUN {
vis_dat_ly(airquality)

# }

Run the code above in your browser using DataLab