Skip to content

Feature request: fixed size graphics device #4422

Closed

Description

@noamross

I asked about this once a long time ago, but perhaps it can be taken up again.

It would be excellent if one could set the RStudio graphics device to generate plots as they would be generated by a non-interactive device with fixed dimensions, so that one could do iterative plot-making within the IDE rather than call png(), look at the outputs in another program, and then fiddle with font scaling, etc. and repeat. The plot could still display in the Plot or Viewer tab, but resizing that panel would not regenerate the plot - it would simply fit in the div with 100% width.

A possible API would be:

RStudioGD(fixed = TRUE, dev = "png", height = 3, width = 6, units = "in", dpi = 300)

If the user exports the image, the default size (for any filetype) would be the same as that in the plot window so the image looks the same.

The RStudioGD() options could also be set via the GUI, such as a drop-down menu in the plot panel.

Activity

  1. ronblum commented on Mar 12, 2019

    @ronblum
    Contributor

    @noamross Thank you for your suggestion—and also re-requesting it and providing a possible solution. We'll review this as we continue development of RStudio.

  2. stale commented on Feb 5, 2021

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

  3. added
    stale
    on Feb 5, 2021
  4. added this to the v1.6 milestone on Feb 8, 2021
  5. removed
    stale
    on Feb 8, 2021
  6. mikebessuille commented on Feb 17, 2022

    @mikebessuille
    Contributor

    See the related #4521

  7. jmcphers commented on Dec 2, 2022

    @jmcphers
    Member

    noted elsewhere by @gadenbuie:

    It'd be awesome to have a mode that keeps the export plot window the same size but scales the plot itself within the window

  8. 10 remaining items

  9. self-assigned this
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions