Lauri Nikkinen wrote:
Thanks. I upgraded to R 2.8.1 and tried

tiff(filename = "volc.tif", width=600, height=400, compression =
"none", bg = "white", res = 300)
image(t(volcano)[ncol(volcano):1,])
dev.off()

but this produces error

Error in plot.new() : figure margins too large

How this should be modified to produce a decent-sized graph?

Regards,
Lauri


Try a somewhat lower resolution or reduce the margins:
par(mar=c(....))

Uwe Ligges



2009/2/18 Uwe Ligges <lig...@statistik.tu-dortmund.de>:

Lauri Nikkinen wrote:
Hello,

How to produce .tif graphic in colors using bitmap function?

e.g this produces figure in grayscale

bitmap(file="volc.tif", type = "tifflzw", res = 300)
image(t(volcano)[ncol(volcano):1,])
dev.off()
Why not upgrade R and use the tiff() device?

Uwe Ligges




I'm using Windows XP and ghostscript.

R.Version()
$platform
[1] "i386-pc-mingw32"

$arch
[1] "i386"

$os
[1] "mingw32"

$system
[1] "i386, mingw32"

$status
[1] ""

$major
[1] "2"

$minor
[1] "7.1"

$year
[1] "2008"

$month
[1] "06"

$day
[1] "23"

$`svn rev`
[1] "45970"

$language
[1] "R"

$version.string
[1] "R version 2.7.1 (2008-06-23)"

______________________________________________
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.

______________________________________________
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