r-lib/ragg

white spaces in axis title of exported png

Closed this issue · 1 comments

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

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