[R] thicker axis in levelplot

jim holtman jholtman at gmail.com
Wed Oct 31 20:23:36 CET 2007


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


-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?



More information about the R-help mailing list