- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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 a 90-degree arc in R?
To create a 90-degree arc in R, we can use draw.arc function of plotrix package where we can use deg2 argument. Since, a 90-degree can be drawn in four ways; we need to pass the degree depending on the position of the arc we want to display.
Check out an Example explained below.
Example
To create a 90-degree arc in R, add the following code −
plot(1:10,type="n")
Output
If you execute the above given snippet, it generates the following Output −
To create a 90-degree arc in R, add the following code to the above snippet −
plot(1:10,type="n") draw.arc(5,5,2,deg2=90,col="blue")
Output
If you execute all the above given snippets as a single program, it generates the following Output −
To create a 90-degree arc in R, add the following code to the above snippet −
plot(1:10,type="n") draw.arc(5,5,2,deg2=-90,col="blue")
Output
If you execute all the above given snippets as a single program, it generates the following Output −
To create a 90-degree arc in R, add the following code to the above snippet −
plot(1:10,type="n") draw.arc(5,5,2,deg1=90,deg2=180,col="blue")
Output
If you execute all the above given snippets as a single program, it generates the following Output −
- Related Articles
- How to rotate a matrix of size n*n to 90 degree using C#?
- How to create an Arc using JavaFX?
- How to Create the path element arc in JavaFX?
- How to rotate a matrix of size n*n to 90-degree k times using C#?
- Rotate a matrix by 90 degree without using any extra space in C++
- How to create a sphere in R?
- How to create a polynomial model in R?
- How to create a Venn diagram in R?
- How to create a frequency polygon in R?
- How to create a sparse matrix in R?
- How to create a dummy variable in R?
- How to create a staircase plot in R?
- How to create a covariance matrix in R?
- Rotate a matrix by 90 degree in clockwise direction without using any extra space in C++
- How to create permutations as a list in R?
