Hi
Do you mean like this ... ?
stripchart(df$Y ~ df$X,
method = "jitter", offset=1/3,
vertical = TRUE, las=1,
pch=16, cex=2,
ylab="Y", xlab="X",
main="Example",
axes=FALSE)
box()
axis(1)
axis(2, labels=FALSE)
axis(4, labels=FALSE)
Paul
On 6/09/23 07:56, Luigi Marongiu wrote:
I would like to draw a graph where the y-lables are missing but the
marks still present.
In this example, I get marks from 20000 to 140 000 with increments of
20 000. I could use `plot(... yaxt="n"...)` combined with `axis(2,
at..., label="")` but this needs to know exactly the sequence of marks
provided by plot. But this sequence might change.
Thus is there a way to plot the marks without labels?
Also, is it possible to draw the marks on the right side?
Thank you.
```
y = c(42008, 19076, 150576, 48192, 26153, 37931, 36103, 17692,
61538,41027, 71052, 94571)
df = data.frame(X = c(rep(0, 6), rep(25, 6)), Y = y)
stripchart(df$Y ~ df$X,
method = "jitter", offset=1/3,
vertical = TRUE, las=1,
pch=16, cex=2,
ylab="Y", xlab="X",
main="Example")
```
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
<https://stat.ethz.ch/mailman/listinfo/r-help>
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
<http://www.R-project.org/posting-guide.html>
and provide commented, minimal, self-contained, reproducible code.
--
Dr Paul Murrell
Te Kura Tatauranga | Department of Statistics
Waipapa Taumata Rau | The University of Auckland
Private Bag 92019, Auckland 1142, New Zealand
64 9 3737599 x85392
p...@stat.auckland.ac.nz
www.stat.auckland.ac.nz/~paul/
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.