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.