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
On Sun, 20 Dec 2020 at 06:22, Richard O'Keefe wrote:
> More accurately, in x[i] where x and i are simple vectors,
> i may be a mix of positive integers and zeros
> where the zeros contribute nothing to the result
>
Yes, index 0 doesn't get an error or a warning. I think it should.
Eg.
(v <- 1
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
I've never mastered using negative indexes with my fingers, though...
On December 19, 2020 11:32:46 PM PST, Jim Lemon wrote:
>It does remind me of counting on one's fingers, though.
>
>Jim
>
>On Sun, Dec 20, 2020 at 4:38 PM Bert Gunter
>wrote:
>>
>But c(x[-1], x[1]) is, which is not so terrible
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
9 matches
Mail list logo