[R] Remove the border/frame in a dotplot()

John Kane jrkrideau at inbox.com
Sun Nov 30 15:22:30 CET 2014

You seem to have posted in HTML and the post is close to unreadable. Also you did not include any data, as far as I can see.

Please supply some sample dataand code. 
 The easiest way to supply data  is to se the dput() function.  Example with your file named "testfile": 
Then copy the output and pasteinto your emal.  Fr large data sets, you can just supply a representative sampl.  Usually,  dput(head(testfile, 100)) will be sufficient.    

You might also find 
https://github.com/hadley/devtools/wiki/Reproducibility and 
 http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example useful

John Kane
Kingston ON Canada

> -----Original Message-----
> From: r-help at r-project.org
> Sent: Sat, 29 Nov 2014 21:59:14 +0000 (UTC)
> To: r-help at r-project.org
> Subject: [R] Remove the border/frame in a dotplot()
> 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 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.

FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!

More information about the R-help mailing list