On Wed, 11 Aug 2010, bill.venab...@csiro.au wrote:

The types of bitmap available depend on the ghostscript you have installed. Have you checked that yours handles jpeg?

That's true, but bitmap() is failing in its check of the available types.

As so very often, we lack the 'at a minimum' information requested in the posting guide. Run the equivalent on your OS of 'gs -help' to see what is going on: the problem result from bitmap() being unable to parse the output of that command. Probably the ghostscript installation is broken, but it could just be that this is a version that we've not seen before.


What happens if you use the jpeg driver directly?

-----Original Message-----
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On 
Behalf Of kayj
Sent: Wednesday, 11 August 2010 7:25 AM
To: r-help@r-project.org
Subject: [R] problem with Bitmap


Hi All,

I am trying to run the following script but I am getting and error message
one <- read.table("sample.txt",sep="\t")
bitmap(file="sample.JPG",type="jpeg",width=5,height=5,res=300,pointsize=10)
"Error in (st + 1):(en - 1) : argument of length 0"
plot(V2 ~ V1,one)

I tried to google the error but did not find anything!
I have ghostscript installed and added to the path environment.

Your help is greatly appreciated,

Thanks,

--
View this message in context: 
http://r.789695.n4.nabble.com/problem-with-Bitmap-tp2320477p2320477.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@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.

______________________________________________
R-help@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.


--
Brian D. Ripley,                  rip...@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@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.

Reply via email to