r-lib / ragg

Graphic Devices Based on AGG
https://ragg.r-lib.org
Other
172 stars 24 forks source link

white spaces in axis title of exported png #135

Closed AlvaroMCMC closed 6 months ago

AlvaroMCMC commented 1 year ago

I recently moved to ragg::agg_png() because ggsave() was not exporting the right family font.

I exported an image to a png file using this code:

        ragg::agg_png(
          filename = "image.png",
          width = 15,
          height = 10,
          units = "cm",
          res = 300,
          scaling = 1,
          bg = "white"
        )

        plot(grafico)

        dev.off()

The left-axis title has more white spaces than needed and it should be "Riqueza de especies".

image

thomasp85 commented 11 months ago

Can you provide a reprex that creates the issue so I might look into the issue?