Draw A Circle In Plotrix: Various Plotting Functions

rdrr.io Find an R package R language docs Run R in your browser

plotrix Various Plotting Functions

Package index Search the plotrix package Vignettes
  • Package overview
  • README.md
Functions 311 Source code 123 Man pages 164
  • ablineclip: Add a straight line to a plot
  • add.ps: add p-values from t-tests
  • addtable2plot: Add a table of values to a plot
  • arctext: Display text on a circular arc
  • axis.break: Place a "break" mark on an axis
  • axis.mult: Display an axis with values having a multiplier
  • barlabels: Label the bars on a barplot
  • barNest: Display a nested breakdown of numeric values
  • barp: A bar plotting routine
  • battleship.plot: Display a matrix of values as the widths of stacked...
  • binciW: Binomial confidence limits
  • binciWl: Lower binomial confidence limit
  • binciWu: Upper binomial confidence limit
  • bin.wind.records: Classify wind direction and speed records
  • boxed.labels: Place labels in boxes
  • box.heresy: Display a sort of box plot
  • brkdnNest: Perform a nested breakdown of numeric values
  • brkdn.plot: A point/line plotting routine
  • bumpchart: Display a "bumps" (sequential ranking) chart
  • categoryReshape: Convert object label/attribute label coding.
  • centipede.plot: Display a centipede plot
  • clean.args: Remove inappropriate arguments from an argument list
  • clock24.plot: Plot values on a 24 hour "clockface"
  • clplot: Plot lines with colors determined by values.
  • clustered.dotplots: Display the frequencies of two categories
  • cluster.overplot: Shift overlying points into clusters
  • color2D.matplot: Display a numeric matrix as color matrix
  • color.axis: Display an axis in a specified color
  • color.gradient: Calculate an arbitrary sequence of colors
  • color.id: Identify closest match to a color
  • color.legend: Legend matching categories or values to colors
  • color.scale: Turn values into colors.
  • color.scale.lines: Line segments with scaled colors
  • corner.label: Find corner locations and optionally display a label
  • count.overplot: Show overlying points as counts
  • cylindrect: Display an apparent cylinder
  • death_reg: Death registrations from 1996 to 2010
  • dendroPlot: Display distributions as dendrites
  • densityGrid: Display a matrix of cell values as symbols.
  • diamondplot: Plot multiple variables as polygons on a radial grid
  • dispersion: Display a measure of dispersion.
  • do.first: Execute a graphic function on a plot
  • dotplot.mtb: Minitab style dotplots.
  • draw.arc: Draw arc
  • draw.circle: Draw a circle
  • draw.ellipse: Draw ellipse
  • drawNestedBars: Display nested bars
  • draw.radial.line: Draw a radial line
  • drawSectorAnnulus: Display a radial pie sector
  • draw.tilted.sector: Display a 3D pie sector
  • Browse all...
Home / CRAN / plotrix / draw.circle: Draw a circle draw.circle: Draw a circle In plotrix: Various Plotting Functions

View source: R/draw.circle.R

draw.circleR 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.md

R Package Documentation

rdrr.io home R language documentation Run R code online

Browse R Packages

CRAN packages Bioconductor packages R-Forge packages GitHub packages

We 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.

Close

Tag » Add Circle R Plot