[R] Can't Get Lattice Histogram Minor Tick Marks to Work

Donald Macnaughton donm@c @ending from m@t@t@t@com
Wed Apr 25 05:22:15 CEST 2018


I'm drawing a paneled histogram using the lattice package. I've succeeded in
adding minor tick marks to the vertical axis, but I can't get the desired
number of minor tick marks between the major tick marks. 

I've attached a self-contained program to illustrate the problem.

Thanks for your help,

Don Macnaughton


Here's my sessionInfo:

R version 3.4.3 (2017-11-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 16299)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 
[2] LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] graphics  grDevices utils     datasets  stats     methods   base     

other attached packages:
[1] psych_1.7.8         latticeExtra_0.6-28 RColorBrewer_1.1-2 
[4] Hmisc_4.0-3         ggplot2_2.2.1       Formula_1.2-2      
[7] survival_2.41-3     lattice_0.20-35    

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.14        pillar_1.0.1        compiler_3.4.3     
 [4] plyr_1.8.4          base64enc_0.1-3     tools_3.4.3        
 [7] rpart_4.1-11        digest_0.6.13       nlme_3.1-131       
[10] tibble_1.4.1        gtable_0.2.0        checkmate_1.8.5    
[13] htmlTable_1.11.1    rlang_0.1.6         Matrix_1.2-12      
[16] rstudioapi_0.7      parallel_3.4.3      gridExtra_2.3      
[19] stringr_1.2.0       cluster_2.0.6       knitr_1.18         
[22] htmlwidgets_0.9     grid_3.4.3          nnet_7.3-12        
[25] data.table_1.10.4-3 foreign_0.8-69      magrittr_1.5       
[28] backports_1.1.2     scales_0.5.0        htmltools_0.3.6    
[31] splines_3.4.3       mnormt_1.5-5        colorspace_1.3-2   
[34] stringi_1.1.6       acepack_1.4.1       lazyeval_0.2.1     
[37] munsell_0.4.3    



More information about the R-help mailing list