par(pty="s")
plot(...)
sets the plot type to be square, which will do the job (I think) in your case because your x and y ranges are the same. Fairly well hidden option documented in ?par.
More Related Contents:
- Scatterplot with marginal histograms in ggplot2
- Scatterplot with too many points
- How can a data ellipse be superimposed on a ggplot2 scatterplot?
- ggplot: colour points by groups based on user defined colours
- Control the size of points in an R scatterplot?
- How can I label points in this scatterplot?
- ggplot2 custom legend shapes
- Visualizing two or more data points where they overlap (ggplot R)
- Finding ALL duplicate rows, including “elements with smaller subscripts”
- Converting year and month (“yyyy-mm” format) to a date?
- Horizontal/Vertical Line in plotly
- R Shiny: Handle Action Buttons in Data Table
- Subset a matrix according to a columns vector
- Code to import data from a Stack overflow query into R
- Changing whisker definition in geom_boxplot
- Saving multiple outputs of foreach dopar loop
- Assign intermediate output to temp variable as part of dplyr pipeline
- Cumulative sum until maximum reached, then repeat from zero in the next row
- Way to securely give a password to R application from the terminal?
- dplyr broadcasting single value per group in mutate
- R: lm() result differs when using `weights` argument and when using manually reweighted data
- How to make geom_text plot within the canvas’s bounds
- dplyr if_else() vs base R ifelse()
- Set the plot title to wrap around and shrink the text to fit the plot
- R: how to find the mode of a vector [duplicate]
- How to update a package in R?
- Mutate multiple variable to create multiple new variables
- Reset the graphical parameters back to default values without use of dev.off()
- Cut() error – ‘breaks’ are not unique
- How to use superscript in axis labels with ggplot2