- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to create two 3d plots at a time in R?
The rgl package is specifically designed to create real-time interactive 3D plots and we can create two 3d plots using plot3d function of this package. Also, these plots can be viewed in the R console at a single point of time with the help of open3d() function.
Example
Loading rgl package:
Example
> library(rgl) > x<-rpois(200,5) > y<-rpois(200,2) > z<-rpois(200,3) > plot3d(x,y,z)
Output
Example
> open3d() wgl 12 > plot3d(x,y,z,col=rainbow(5))
Output
- Related Articles
- How to create two plots using ggplot2 arranged in a vertical manner in R?
- How to create a 3D-array from data frame in R?
- How to save Matplotlib 3d rotating plots?
- How to create multiple plots of different sizes in base R?
- How to create a time series plot in R without time vector?
- How to create the plots arranged in a list that were generated using ggplot2 in R?
- How to create a Box (3D) in JavaFX?
- How to create a Sphere (3D) in JavaFX?
- How to create a Cylinder (3D) in JavaFX?
- How to create a function in R with two inputs?
- How to show legend and label axes in 3D scatter plots in Python Plotly?
- How to stop par(mfrow) to create multiple plots in one plot window and create only one plot in R?
- How to create a scatterplot using five vectors in a single plot window without separating the plots in R?
- How to create a sequence of time in minutes with date in R?
- How to animate a time-ordered sequence of Matplotlib plots?

Advertisements