6 Interactive Graphics with dplot3

  .:rtemis 0.8.0: Welcome, egenn
  [x86_64-apple-darwin17.0 (64-bit): Defaulting to 4/4 available cores]
  Documentation & vignettes: https://rtemis.netlify.com

Interactive graphics offer a flexible and dynamic way to communicate information, great for websites / web applications and live demonstrations. rtemis uses the powerful plotly open source graphing library and other libraries built on top of that.
While viewing these graphs, try using the mouse to hover over and click to interact with the graphic elements - especially with the 3D plots.

6.1 Density and Histograms

dplot3.x(iris$Sepal.Length)
Warning: `arrange_()` is deprecated as of dplyr 0.7.0.
Please use `arrange()` instead.
See vignette('programming') for more help
This warning is displayed once every 8 hours.
Call `lifecycle::last_warnings()` to see where this warning was generated.

To plot multiple traces, you can either pass a list, or define groups by passing a factor to the group argument. By default, mode = "overlap", which draws traces in the same plot.

dplot3.x(iris$Sepal.Length, group = iris$Species) 
options(rt.theme = "darkgrid") # can also pass theme = "darkgrid" to dplot3.x
dplot3.x(iris)

Note that non-numeric columns are automatically omitted. You can set mode = "ridge" to create a multiplot:

dplot3.x(iris, mode = "ridge")

By default, “ridge” mode will order plot order by variable mean. This can be changed using the ridge.order.on.mean when you want to maintain group ordering - for example, if groups represent temporal information.

xl <- list(mango = rnorm(200, 7, 1),
           banana = rnorm(200,10, .8),
           tangerine = rnorm(400, 0, 2),
           sugar = rnorm(500, 3, 1.5))
dplot3.x(xl)
dplot3.x(xl, mode = 'ridge')