points() function in R Language is used to add a group of points of specified shapes, size and color to an existing plot.
Syntax: points(x, y, cex, pch, col)
x, y: Vector of coordinates
cex: size of points
pch: shape of points
col: color of points
Sample Scatter Plot:
Here, a sample scatter plot is created for the addition of points.
Example 1: Adding points to scatterplots
Example 2: Adding points of different properties
- Set Aspect Ratio of Scatter Plot and Bar Plot in R Programming - Using asp in plot() Function
- Addition of Lines to a Plot in R Programming - lines() Function
- Add Color Between Two Points of Kernel Density Plot in R Programming - Using with() Function
- Plot Arrows Between Points in a Graph in R Programming - arrows() Function
- Get Addition of the Objects passed as Arguments in R Programming - sum() Function
- Plot a Geometric Distribution Graph in R Programming - dgeom() Function
- Draw a Quantile-Quantile Plot in R Programming - qqline() Function
- Create a Plot Matrix of Scatterplots in R Programming - pairs() Function
- Adding axis to a Plot in R programming - axis () Function
- Adding Straight Lines to a Plot in R Programming - abline() Function
- Plotting of Data using Generic plots in R Programming - plot() Function
- Draw Line Segments between Particular Points in R Programming - segments() Function
- Draw a Polygon between specified points in R Programming - polygon() Function
- Get a List of points obtained by Interpolation in R Programming - spline() and splinefun() Function
- Check if a Function is a Primitive Function in R Programming - is.primitive() Function
- Compute Density of the Distribution Function in R Programming - dunif() Function
- Apply a Function over a List of elements in R Programming - lapply() Function
- Search the Interval for Minimum and Maximum of the Function in R Programming - optimize() Function
- Compute the Natural Logarithm of the Absolute Value of Gamma Function in R Programming - lgamma() Function
- Compute the Logarithmic Derivative of the gamma Function in R Programming - digamma() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.