VOOZH about

URL: https://www.geeksforgeeks.org/r-language/set-aspect-ratio-of-scatter-plot-and-bar-plot-in-r-programming-using-asp-in-plot-function/

⇱ Set Aspect Ratio of Scatter Plot and Bar Plot in R Programming - Using asp in plot() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Set Aspect Ratio of Scatter Plot and Bar Plot in R Programming - Using asp in plot() Function

Last Updated : 15 Jul, 2025
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 ) Parameters: x, y: Coordinates of x and y axis asp: Aspect ratio
Example 1: Output: Example 2: Output:

Here, the asp option increases the width of the y-axis.

Comment
Article Tags:

Explore