Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Plot3D Package and Example in R.-Data visualizat,on
1. Prepared by Volkan OBAN
Plot3D package in R and examples,etc.
Reference: http://www.sthda.com/english/wiki/impressive-package-for-3d-and-4d-graph-r-
software-and-data-visualization
text3D: plot 3-dimensionnal texts
The function text3D() is used as follow:
text3D(x, y, z, labels, ...)
The USArrests data sets will be used in the example below:
data(USArrests)
with(USArrests, text3D(Murder, Assault, Rape,
labels = rownames(USArrests), colvar = UrbanPop,
col = gg.col(100), theta = 60, phi = 20,
xlab = "Murder", ylab = "Assault", zlab = "Rape",
main = "USA arrests", cex = 0.6,
bty = "g", ticktype = "detailed", d = 2,
clab = c("Urban","Pop"), adj = 0.5, font = 2))