Publications by Gregor Gorjanc
Fitting lactation curves/functions in R
It is quite some time ago since I wrote a set of lactation curves/functions in R. I put those functions in the animSci package. However, the package is in a mess for quite some time now – I was adding some new functions, but did not have time to finish the job properly. This is also the reason that package was not published. I got several inqur...
1758 sym R (409 sym/2 pcs)
smoothScatter in base R
smoothScatter function is now available also in base R – in the recommended package graphics that is shipped with R. Originally this function was in the genepplotter package from Bioconductor. I really like it since it can nicely plot large datasets. Bellow is an example figure (also available at R Graph Gallery). Simply start R and type ?smoot...
792 sym 2 img
RExcel
I am not a fan of MS Windows software. However, the reality is that majority of people use it and it is often easier for me to live with this than to convert the sorounding souls. Additionally I am find ing out lately that majority of my favourite open-source programs work on all major platforms: MS Windows, Mac, and UNIX/Linux. Then there is no ...
1712 sym
Sweave-Lyx from terminal on Mac
Mark Heckmann writes:In your paper “Using Sweave with Lyx” (great work bty) you pointed out that one can see the sweave error code when processing when starting lyx from the terminal. I just changed from Windows to Mac so that’s new for me. Could you send me a few lines how to do that, that is how to operate lyx from terminal an...
1140 sym
Galton’s quincunx in R
Andrej Blejec has a very nice R demo of Galton’s quincunx (link1, link2). It is a bit tedious to copy the code from PDF to R console, but it is worth the effort as the demo simulation clearly shows the nature of quincunx. After a bit of search I also found a similar function quincunx in the animation R package by Yihui Xi. Image source: Wolfra...
759 sym 2 img
R AnalyticFlow
R AnalyticFlow seems to be a nice tool to have a good overview over the analysis. The same kind of mode is available in Orange and SAS Enterprise Guide. I have not tried it yet, though. Does anyone have any experiences with it?Update on 2010-07-31: there is also Red-R, which is a “sort of mixture” of R and Orange.R AnalyticFlowOrangeSAS Enter...
757 sym 6 img
Sweave.sh in Eclipse-StatET
Sébastien Bihorel sent the following instructions on how to use my sweave.sh shell script in Eclipse-StatET.1- First, you need to know the path to your TEXINPUTS settings. Type R CMD env |grep TEXINPUTS in a shell. In my installation (opensuse 11.2), the shell returned the followingTEXINPUTS=.::/usr/lib/R/share/texmf:2- Edit your .bashrc file (l...
1763 sym
Drawing pedigree examples using the kinship R package
I have previously provided sort of an overview about plotting the pedigrees, then specifically using the Graphiviz, while I have lately used the TikZ LaTeX (see slides 11-15) system (see more example). The later gives great (beautiful) results, but at the cost of writing TikZ code – it is not that horible, just time consuming – the same appli...
591 sym
IPSUR book used LyX-Sweave
Jay Kerns wrote a book titled “Introduction to Probability and Statistics Using R” or IPSUR for short. He has put up a web site for the book and Rcmdr plugin. There are at least two very important points from my side (I did not read the book, yet): 1. it is free to download (thank you Jay!!!) and 2. it was written with the help of LyX-Sweave....
812 sym
ASReml-R: Storing A inverse as a sparse matrix
I was testing ASReml-R program (an R package that links propriety ASReml binaries that can be used only with valid licence) this week and had to do some manipulations with the numerator relationship matrix (A). ASReml-R provides a function (asreml.Ainverse) that can create inverse of A directly from the pedigree as this inverse is needed in pedig...
2329 sym R (2696 sym/5 pcs)