[R] Remove plot axis values in dotplot graph
drj|m|emon @end|ng |rom gm@||@com
Wed Sep 12 01:14:14 CEST 2018
Surprisingly you can't omit the x axis in dotchart. This hack will work:
Edit the resulting file by joining the first two lines with the
assignment symbol (<-), delete the two lines at the bottom and comment
out the line "axis(1)".
dotchart.noax(scores,cex=1.5, pch = 18, col=c(1:3), xaxt = "n", main="Dot Plot
child’s cough data", xlab="cough Scores")
I used "staxlab" so that you could have all of the labels 0:16.
On Wed, Sep 12, 2018 at 5:57 AM AbouEl-Makarim Aboueissa
<abouelmakarim1962 using gmail.com> wrote:
> Dear All:
> One more thing. I want to Remove the plot x-axis values in dotplot graph. I
> am trying to use xaxt = "n", but it seems NOT working. Also after removing
> the x-axis values, I want to use the command axis(1, at=0:16, cex.axis=1)
> to add x-axis values from 0 to 16, but it seems not working as expect.
> dotchart(scores,cex=1.5, pch = 18, col=c(1:3), xaxt = "n", main="Dot Plot
> child’s cough data", xlab="cough Scores")
> axis(1, at=0:16, cex.axis=1.5)
> with many thanks
> *AbouEl-Makarim Aboueissa, PhD*
> *Professor of Statistics*
> *Graduate Coordinator*
> *Department of Mathematics and Statistics*
> *University of Southern Maine*
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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