[R] thicker axis in levelplot

Jenny Barnes jmb at mssl.ucl.ac.uk
Thu Nov 1 16:10:18 CET 2007


Thank you for your reply - I'm afriad that just doesn't work, any other 
suggestions or is there something I need to do WITH this command to make it 
work?

I really am stuck on this one and would appreciate any help offered,

Jenny


From: "jim holtman" <jholtman at gmail.com>
To: "Jenny Barnes" <jmb at mssl.ucl.ac.uk>
Subject: Re: [R] thicker axis in levelplot
Cc: r-help at stat.math.ethz.ch
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
X-MSSL-MailScanner-Information: Please contact the ISP for more information
X-MSSL-MailScanner: No virus found
X-MSSL-MailScanner-SpamCheck: not spam, SpamAssassin (score=-4.9, required 5, 
BAYES_00 -4.90)

try:

 trellis.par.set(axis.line=list(lwd=4))


On 10/31/07, Jenny Barnes <jmb at mssl.ucl.ac.uk> wrote:
> Dear R-help community,
>
> I need to find out how to make the black axis line around my plot thicker in
> levelplot, I cannot find the correct command in ?levelplot or ?par - or if it 
is
> there I cannot get it to work - any help would be more that appreciated!
>
> Here's an example script - I would want the code for making the axis bordering
> the plot thicker:
>
> x<- seq(pi/4, 5*pi,length=100)
> y<- seq(pi/4, 5*pi,length=100)
> r<- as.vector(sqrt(outer(x^2,y^2,"+")))
> grid<- expand.grid(x=x,y=y)
> grid$z <- cos(r^2) * exp(-r/(pi^3))
>
> levelplot(z~x*y, grid, cuts=50, scales=list(log="e"), xlab="",
>           ylab="", main="Weird Function", sub="with log scales",
>           colorkey=FALSE, region=TRUE)
>
>
> Also, If anybody knows how to make the lines around the colorkey (legend)
> thicker too I'd like to do that as well! (I realise that the above script does
> not include a colorkey component but my actual work does).
>
> Many thanks,
>
> Jenny Barnes
>
> ______________________________________________
> 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