stéphanie,

I believe you need all of this.  Look at it with a good editor and in
a monowidth font such
as courier to see the structure.

Rich

library(lattice)
library(latticeExtra)
dotplot(~ 1:10,
        par.settings=list(
          axis.line=list(col="transparent"),
          clip=list(panel=FALSE))) +
            layer({panel.axis(side="bottom", line.col="black", outside=TRUE);
                   panel.abline(h=current.panel.limits()$ylim[1],
                                v=current.panel.limits()$xlim[1])})

On Sat, Nov 29, 2014 at 4:59 PM, stéphanie braun <r-help@r-project.org> wrote:
> Dear listmembersI wouldlike to remove in a dotplot() the border/frame from 
> the figure and only keepthe x- and y-axis. I can’t find a way to do this. 
> bty="n" does notwork. Can somebody help? I include the r coding for my figure 
> below. dotplot(plant_species ~ mean, data =botany,            aspect= 1.5,    
>         scales=list(x=list(tck=c(-1,0)),y = list(tck=c(-1,0))),            
> ylab= "Plant species",            xlim= c(-1.1, 1.1),            xlab= 
> "Electivity index",prepanel = NULL,            panel= function (x, y) {       
>      panel.abline(v=0)            panel.xyplot(x,y, pch = 16, col = "black")  
>           panel.segments(botany$lower,as.numeric(y),            
> botany$upper,as.numeric(y), lty = 1, col = "black")}
>
> Thank you!Stéphanie
>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> 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