Draw A Circle In Plotrix: Various Plotting Functions
Maybe your like
plotrix Various Plotting Functions
Package index Search the plotrix package Vignettes- Package overview
- README.md
- Browse all...
View source: R/draw.circle.R
| draw.circle | R Documentation |
Draw a circle
Description
Draws a circle on an existing plot.
Usage
draw.circle(x,y,radius,nv=100,border=NULL,col=NA,lty=1,density=NULL, angle=45,lwd=1)Arguments
| x, y | Coordinates of the center of the circle. |
| radius | Radius (or radii) of the circle(s) in user units. |
| nv | Number of vertices to draw the circle. |
| border | Color to use for drawing the circumference. |
| col | Color to use for filling the circle. |
| lty | Line type for the circumference. |
| density | Density for patterned fill. See ‘polygon’. |
| angle | Angle of patterned fill. See ‘polygon’. |
| lwd | Line width for the circumference. |
Details
‘draw.circle’ uses the dimensions of the plot and the ‘x’ and ‘y’ coordinates to draw a circle rather than an ellipse.
Value
A list with the x and y coordinates of the points on the circumference of the last circle displayed.
Author(s)
Jim Lemon, thanks to David Winsemius for the density and angle args
See Also
polygon
Examples
plot(1:5,seq(1,10,length=5),type="n",xlab="",ylab="",main="Test draw.circle") draw.circle(2,4,c(1,0.66,0.33),border="purple", col=c("#ff00ff","#ff77ff","#ffccff"),lty=1,lwd=1) draw.circle(2.5,8,0.6,border="red",lty=3,lwd=3) draw.circle(4,3,0.7,border="green",col="yellow",lty=1, density=5,angle=30,lwd=10) draw.circle(3.5,8,0.8,border="blue",lty=2,lwd=2) plotrix documentation built on Nov. 15, 2025, 1:06 a.m.Related to draw.circle in plotrix...
plotrix index Package overview README.mdR Package Documentation
rdrr.io home R language documentation Run R code onlineBrowse R Packages
CRAN packages Bioconductor packages R-Forge packages GitHub packagesWe want your feedback!
Note that we can't provide technical support on individual packages. You should contact the package authors for that. Tweet to @rdrrHQ GitHub issue tracker [email protected]
Personal blog What can we improve? The page or its content looks wrong I can't find what I'm looking for I have a suggestion Other Extra info (optional) Submit Improve this page Embedding an R snippet on your website Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.
CloseTag » Add Circle R Plot
-
How To Draw A Circle In R? - Tutorialspoint
-
Draw Plot With Circle In R (3 Examples) - Statistics Globe
-
R: How To Draw Circles In Plots (With Examples) - - Statology
-
Drawing Circle In R - Plot - Stack Overflow
-
rcle Function - RDocumentation
-
How To Add Circles In Plots In R With Examples - Finnstats »
-
How To Add Circles Around Specific Data Points In R - GeeksforGeeks
-
How To Annotate A Plot With Circle In R - GeeksforGeeks
-
Draw Symbols (Circles, Squares, Stars, Thermometers, Boxplots)
-
R Plot Pch Symbols : The Different Point Shapes Available In R - STHDA
-
Plot Circles - R
-
Draw Plot With Circle In R (3 Examples) | Base R & Plotrix Package ...
-
Circles Based On Center And Radius — Geom_circle • Ggforce