[R] unexpected plot behavior
Martin Renner
greatauklet at gmail.com
Sat Apr 21 16:49:05 CEST 2012
When plotting a numerical vector against a factor, 'type="n"' seems to have no affect, e.g.
> plot (1:10~factor (1:10), type = "n")
looks just like
> plot (1:10~factor (1:10))
Plotting a numerical against itself works as expected:
> plot (1:10, type = "n")
I see the same behavior under debian gnu/linux, Mac OS X, and Win7 (all current versions, see below). Is this a bug?
Regards,
Martin
Martin Renner
Post-doctoral Fellow phone: 907-226 4672
University of Washington or: 907-235 0728
School of Aquatic and Fishery Sciences Seattle, USA
> sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: x86_64-unknown-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=C LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
More information about the R-help
mailing list