That works with my suggestion:
g <-
ggplot() +
theme(
plot.background = element_rect(fill = "yellow2", colour = "yellow2"),
panel.background = element_rect(fill = "yellow2"),
)
g <- g + coord_fixed()
dev.new(bg = "yellow2")
g # For a pure yellow plot window
Duncan Murdoch
On 20
Hello,
Is it this?
plot.background = element_rect(colour = "yellow2", fill = "yellow2")
The small white space goes away.
Hope this helps,
Rui Barradas
Às 17:00 de 20/12/20, Martin Møller Skarbiniks Pedersen escreveu:
On Sun, 20 Dec 2020 at 17:43, Rui Barradas wrote:
Thank you for trying t
On 20/12/2020 12:00 p.m., Martin Møller Skarbiniks Pedersen wrote:
On Sun, 20 Dec 2020 at 17:43, Rui Barradas wrote:
Thank you for trying to answer my question.
I am not sure I understand the problem.
With coord_fixed() both axis have the same length and the plot is a
square. When resizing th
Perhaps ?expansion can help?
On December 20, 2020 9:00:09 AM PST, "Martin Møller Skarbiniks Pedersen"
wrote:
>On Sun, 20 Dec 2020 at 17:43, Rui Barradas
>wrote:
>
>Thank you for trying to answer my question.
>
>> I am not sure I understand the problem.
>> With coord_fixed() both axis have the s
On Sun, 20 Dec 2020 at 17:43, Rui Barradas wrote:
Thank you for trying to answer my question.
> I am not sure I understand the problem.
> With coord_fixed() both axis have the same length and the plot is a
> square. When resizing the plot window the white areas can be on
> top/bottom if the wind
Hello,
I am not sure I understand the problem.
With coord_fixed() both axis have the same length and the plot is a
square. When resizing the plot window the white areas can be on
top/bottom if the window height is bigger than its width or to the
left/right if it's the other way around.
Does
Hi,
I posted this on the Google Group for ggplot2 but got no response.
https://groups.google.com/g/ggplot2/c/441srnt6RZU
So I hope someone can help me here instead?!
-
If I don't use the coord_fixed() then all the background is yellow as
expected.
But I need to coord_fixed() and then it adds a
7 matches
Mail list logo