Library Install
library(dplyr);library(ggplot2);library(plotly)
##
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
##
## filter, lag
## The following objects are masked from 'package:base':
##
## intersect, setdiff, setequal, union
##
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
##
## last_plot
## The following object is masked from 'package:stats':
##
## filter
## The following object is masked from 'package:graphics':
##
## layout
Scatterplot Sizing
## No trace type specified:
## Based on info supplied, a 'scatter' trace seems appropriate.
## Read more about this trace type -> https://plot.ly/r/reference/#scatter
## Warning: `line.width` does not currently support multiple values.
3D Scatter Plot
temp = rnorm(100, mean=30, sd=5)
pressue = rnorm(100)
dtime=1:100
plot_ly(x=temp, y=pressue, z=dtime, type = "scatter3d",mode = "markers", color = temp)