asp is a parameter of the
plot() function in R Language is used to set aspect ratio of plots (Scatterplot and Barplot). Aspect ratio is defined as proportional relationship between width and height of the plot axes.
Syntax: plot(x, y, asp )
x, y: Coordinates of x and y axis
asp: Aspect ratio
- Plot Without Aspect Ratio:
- Plot with Aspect Ratio:
- Bar Plot Without Aspect Ratio:
- Bar Plot with Aspect Ratio:
Here, the asp option increases the width of the y-axis.
- Scatter plots in R Language
- Add Color Between Two Points of Kernel Density Plot in R Programming - Using with() Function
- Plotting of Data using Generic plots in R Programming - plot() Function
- Addition of more points to a Plot in R Programming - points() Function
- Addition of Lines to a Plot in R Programming - lines() Function
- Plot Arrows Between Points in a Graph in R Programming - arrows() 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
- R - Bar Charts
- Generate a set of Sample data from a Data set in R Programming - sample() Function
- Check if a Function is a Primitive Function in R Programming - is.primitive() Function
- Add Leading Zeros to the Elements of a Vector in R Programming - Using paste0() and sprintf() Function
- Search the Interval for Minimum and Maximum of the Function in R Programming - optimize() Function
- Add new Variables to a Data Frame using Existing Variables in R Programming - mutate() Function
- Visualize Correlation Matrix using symnum function in R Programming
- Set or View the Graphics Palette in R Programming - palette() Function
- Get or Set Levels of a Factor in R Programming - levels() 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 email@example.com. 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.