- 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 an arrow in base R?
To create an arrow R, we can use plot function and arrows function. We just need to understand all the coordinate values that should be passed inside the arrows function. For example, if we have two vectors that contains values from 1 to 10 then the arrow can be created by using arrows function as arrows(1,1,10,10).
Example
> x<-1:10 > y<-1:10 > plot(x,y)
Output
Example
> arrows(1,1,10,10)
Output
- Related Articles
- How to create a perpendicular arrow in base R plot?
- How to create heatmap in base R?
- How to create pie chart in base R?
- How to create empty bar plot in base R?
- How to create a horizontal boxplot in base R?
- How to create side-by-side boxplot in base R?
- How to create boxplot for multiple categories in base R?
- How to create boxplot in base R without axes labels?
- How to create a boxplot without frame in base R?
- How to create a cumulative sum plot in base R?
- How to create a histogram without bins in base R?
- How to create a rectangle inside boxplot in base R?
- How to create a plot in base R without margins?
- How to create side by side histograms in base R?
- How to create pie chart in base R with labels?

Advertisements