- 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 change the border style of a circle in R?
We can create a circle in R by using draw.circle function of plotrix package and default border will be like straight lines. If we want to change the border style of a circle then we can use lty argument and set it to different values as shown in the below Examples.
Example
To change the border style of a circle in R use the following snippet −
plot(1:10,type="n")
Output
If you execute the above given snippet, it generates the following Output −
To change the border style of a circle in R add the following code to the above snippet −
plot(1:10,type="n") library(plotrix) draw.circle(5,5,2)
Output
If you execute all the above given snippets as a single program, it generates the following Output −
To change the border style of a circle in R add the following code to the above snippet −
plot(1:10,type="n") library(plotrix) draw.circle(5,5,2,lty=9)
Output
If you execute all the above given snippets as a single program, it generates the following Output −
To change the border style of a circle in R add the following code to the above snippet −
plot(1:10,type="n") library(plotrix) draw.circle(5,5,2,lty=20)
Output
If you execute all the above given snippets as a single program, it generates the following Output −
- Related Articles
- How to change the border style of a plot using ggplot2 in R?
- Change the style of top border with CSS
- Change the style of left border with CSS
- Change the style of bottom border with CSS
- Change the style of the right border with CSS
- How to change the plot border color of a ggplot2 graph in R?
- How to create a circle with different color border in R?
- How to change the border color of box of a base R plot?
- How to change the border line type in base R boxplot?
- How to change the border color of points in a scatterplot created with ggplot2 in R?
- Change the color of legend element border using ggplot2 in R.
- How to set the style of the top border with JavaScript?
- How to set the style of the right border with JavaScript?
- How to set the style of the bottom border with JavaScript?
- How to set the style of the left border with JavaScript?
