[R] print Text on device
Praveen Kanakamedala
pkanakamedala at fauchierpartners.com
Fri Oct 5 09:31:19 CEST 2007
Have you looked into using the xtable package? Xtable supports text but
not graphics. The xtable package creates a LaTEX file after which you
can use Sweave to create a PDF. The other method that has been sugested
before is to use R2HTML and create a HTML file rather than a PDF.
R2HTML supports both text and graphics.
Authorised and regulated by the Financial Services Authority.
This e-mail is confidential and is intended only for the
use of the addressee(s) indicated. If you are not the
intended recipient, please notify us immediately and
delete this message from your system. You should not
copy, distribute or use it for any purpose, or disclose
the contents to any other person.
E-mail is an inherently insecure form of communication
and we do not accept liability for any unintentional
damage caused to a recipient's system by this e-mail
message and/or its attachments nor for any
unauthorised access to or interference with this e-mail
that may occur.-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of John Lande
Sent: 04 October 2007 17:38
To: jim holtman
Cc: r-help at r-project.org
Subject: Re: [R] print Text on device
I would like to print on a pdf a table with element coming from a
vector.
such as
>example=c("a", "b")
>pdf("table.pdf")
>print(example)
>dev.off()
On 10/4/07, jim holtman <jholtman at gmail.com> wrote:
>
> Can you provide an example of what your data looks like and how you
> might want it plotted. 'text' does 'put' data on your plot. What
> else do you want?
>
> On 10/4/07, John Lande <john.lande77 at gmail.com> wrote:
> > hi BioC,
> >
> >
> > I need to plot a vector of characters on a pdf device, not as a
> > legend,
> but
> > as in image by itself.
> > I tried text but it is only related to locate text in a plot.
> >
> > what do you suggest?
> >
> >
> >
> > > sessionInfo()
> > R version 2.6.0 (2007-10-03)
> > x86_64-unknown-linux-gnu
> >
> > locale:
> >
> LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US
> .UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.
> UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8
> ;LC_IDENTIFICATION=C
> >
> > attached base packages:
> > [1] stats graphics grDevices utils datasets methods base
> >
> > loaded via a namespace (and not attached):
> > [1] rcompgen_0.1-15 tools_2.6.0
> >
> > [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
>
>
> --
> Jim Holtman
> Cincinnati, OH
> +1 513 646 9390
>
> What is the problem you are trying to solve?
>
[[alternative HTML version deleted]]
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list