Re: [R] Removing cell borders from svg or eps in levelplot

2014-02-06 Thread Soumyadeep Nandi
Hi Pascal,

It worked!

Thanks a lot :-)

Soumyadeep

From: skalp.oet...@gmail.com [skalp.oet...@gmail.com] On Behalf Of Pascal 
Oettli [kri...@ymail.com]
Sent: Thursday, February 06, 2014 3:04 AM
To: Soumyadeep Nandi
Cc: r-help@r-project.org
Subject: Re: [R] Removing cell borders from svg or eps in levelplot

Hello,

Please try including panel=panel.levelplot.raster as an option of levelplot:

 svg(SVG.svg)
 levelplot(prt, main=SVG, xlab=NULL, ylab=NULL, 
 col.regions=rgb.palette(800), cuts=100, at=seq(0,1.0,0.01), 
 panel=panel.levelplot.raster)
 dev.off()

It may help you.

Regards,
Pascal

On 6 February 2014 01:02, Soumyadeep Nandi s.na...@molbiol.umu.se wrote:
 Hi,

 I am using function svg to save a lattice::levelplot, and ending up in some 
 kind of line or border around each cells of the plot. However, if I save the 
 plot in png, I dont get the border. But I need the plot to be saved in svg or 
 pdf. In both svg and pdf I get the same result.

 I am saving in the following way:

 library(lattice)
 rgb.palette - colorRampPalette(c(black, yellow, red), space = rgb)

 svg(SVG.svg)
 levelplot(prt, main=SVG, xlab=NULL, ylab=NULL, 
 col.regions=rgb.palette(800), cuts=100, at=seq(0,1.0,0.01) )
 dev.off()

 png(PNG.png)
 levelplot(prt, main=PNG, xlab=NULL, ylab=NULL, 
 col.regions=rgb.palette(800), cuts=100, at=seq(0,1.0,0.01) )
 dev.off()

 Is there a way to get rid of these lines from the plot in svg. I went through 
 the thread Remove gray grid from levelplot 
 [https://stat.ethz.ch/pipermail/r-help/2006-March/100683.html], but that 
 didnt help me much.
 I am attaching a screenshot to show the difference.

 Please advice me if I am wrong some where, or if there is a way to get rid of 
 these borders.

 Thanks.
 __
 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.




--
Pascal Oettli
Project Scientist
JAMSTEC
Yokohama, Japan
__
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.


Re: [R] Removing cell borders from svg or eps in levelplot

2014-02-05 Thread Pascal Oettli
Hello,

Please try including panel=panel.levelplot.raster as an option of levelplot:

 svg(SVG.svg)
 levelplot(prt, main=SVG, xlab=NULL, ylab=NULL, 
 col.regions=rgb.palette(800), cuts=100, at=seq(0,1.0,0.01), 
 panel=panel.levelplot.raster)
 dev.off()

It may help you.

Regards,
Pascal

On 6 February 2014 01:02, Soumyadeep Nandi s.na...@molbiol.umu.se wrote:
 Hi,

 I am using function svg to save a lattice::levelplot, and ending up in some 
 kind of line or border around each cells of the plot. However, if I save the 
 plot in png, I dont get the border. But I need the plot to be saved in svg or 
 pdf. In both svg and pdf I get the same result.

 I am saving in the following way:

 library(lattice)
 rgb.palette - colorRampPalette(c(black, yellow, red), space = rgb)

 svg(SVG.svg)
 levelplot(prt, main=SVG, xlab=NULL, ylab=NULL, 
 col.regions=rgb.palette(800), cuts=100, at=seq(0,1.0,0.01) )
 dev.off()

 png(PNG.png)
 levelplot(prt, main=PNG, xlab=NULL, ylab=NULL, 
 col.regions=rgb.palette(800), cuts=100, at=seq(0,1.0,0.01) )
 dev.off()

 Is there a way to get rid of these lines from the plot in svg. I went through 
 the thread Remove gray grid from levelplot 
 [https://stat.ethz.ch/pipermail/r-help/2006-March/100683.html], but that 
 didnt help me much.
 I am attaching a screenshot to show the difference.

 Please advice me if I am wrong some where, or if there is a way to get rid of 
 these borders.

 Thanks.
 __
 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.




-- 
Pascal Oettli
Project Scientist
JAMSTEC
Yokohama, Japan

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