Skip to content

x and y axes use different units in plots, resulting in distortion #1956

@szhorvat

Description

@szhorvat

It seems to me that in R, plots of graphs look distorted as the x and y axes seem use different units. Example

plot(make_lattice(c(2,3)))
Image

Compare this in Mathematica:

Image

Both sides of the grid should look like a square, not like a squished rectangle. I get what R shows me when forcing the bounding box to a square, at the cost of using different units along the x and y axes.

Image

@schochastics @maelle Do you think this could be fixed? What's the standard approach in R? For graph plots, the units should really be the same, otherwise a rotated rectangle doesn't even look like a rectangle, but a parallelogram:

Image

The original coordinates returned from the C core do form a rectangle.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions