Creating 3D Scatterplots with Plotly in R
Instructions to create your own 3d point plot using Plotly in R
The shiny and plotly libraries make coding a 3d scatterplot a breeze. All you need is a few lines of code.
Download and install RStudio
Create a new project and copy and paste the code shown below.
Click the “Run App” button and you will produce a 3d scatterplot that looks like this
It’s as easy as 1,2,3!
library(shiny)
library(plotly)
ui <- fluidPage(
p…
Keep reading with a 7-day free trial
Subscribe to Survey Tools to keep reading this post and get 7 days of free access to the full post archives.