problem with panel border

24 views
Skip to first unread message

Ernest Adrogué

unread,
Jan 30, 2013, 10:47:46 AM1/30/13
to ggp...@googlegroups.com
Adding a panel border to a plot with theme() results in a rectangular border
with different line widths on each edge of the rectangle. For instance,

qplot(1, 1) + theme(panel.border=element_rect(size=2, fill=NA))

adds a border, but the top and left edges are noticeable thinner than the
bottom and right ones. Changing the value of size= may produce different
results. For example, without a size argument the bottom and left edges are
the right width, and it's the top and right one that are too thin. I am
experiencing this with many different devices, namely x11, postcript and
cairo.

Cheers.

Winston Chang

unread,
Jan 30, 2013, 10:54:30 AM1/30/13
to ggplot2
It sounds the same as this issue:

Could you post examples of the output, in each of the different formats?

-Winston



--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility

To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2

---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Ernest Adrogué

unread,
Jan 30, 2013, 11:07:11 AM1/30/13
to ggplot2
30-01-2013, 09:54 (-0600); Winston Chang escriu:
> It sounds the same as this issue:
> https://github.com/hadley/ggplot2/issues/670
>
> Could you post examples of the output, in each of the different formats?

Thanks. Yes, I will do that.
Reply all
Reply to author
Forward
0 new messages