I have two separate datasets that I would like to plot in both a scatterplot3d and a plot3d in r How can I do that? I can make the two plots for the datasets individually with just the following:
H <-as.numeric(Dataset$Height)
D <- Dataset$Dose
W <- Dataset$Weight
scatterplot3d(x= W,y= H, z = D,
main="Title")
plot3d(x= W,y= H, z = D, col="red", size=7 )
How can I combine the two datasets into one scatterplot3d and one plot3d? The new plots would have the same axises as the ones above. I have attached a picture to hopefully help understand the structure of the datasets
the dput looks like this:
You could add a
color
column to each dataset andrbind
them :