Re: Header and footer for plots

323 views
Skip to first unread message

Brandon Hurr

unread,
Sep 20, 2012, 8:35:19 AM9/20/12
to Holger, ggp...@googlegroups.com
I suppose you could create a grid object with a single cell table on
top and bottom of the plot object.

I've never done it so I don't have any example code, but if you google
search for grid table viewports you'll probably find stuff that is
helpful.

On Thu, Sep 20, 2012 at 12:58 PM, Holger <hhoe...@gmail.com> wrote:
> Hi,
>
> I am using ggplot and were looking for the best way to put headers and
> footers on a plot. If possible, this should be a direct extension of the
> ggplot object so that the regular printing of the ggplot object gives a plot
> with the header and footer that can then be printed to pdf, png or various
> other formats. Does someone have a simple workaround for this?
>
> Thanks
>
> Holger
>
> --
> 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

Dennis Murphy

unread,
Sep 20, 2012, 1:44:08 PM9/20/12
to Holger, ggp...@googlegroups.com
Hi:

See the reply to this R-help thread:


You could use the same idea to position a header line as well.

Dennis
Reply all
Reply to author
Forward
0 new messages