2010-03-30

Update on "LyX and Sweave with R on Windows XP or Vista"

As previously Jeff contributed a not on how to setup LyX and Sweave on Win XP or Vista. See here for the note.

P.S. (2010-04-01) See also LyX Wiki

2010-03-24

Ilustracije velikonočnice (Pulsatilla Grandis)

Velikonočnica je enostavno povedano zelo lepa. V Sloveniji raste le na nekaj mestih. Med najbolj znanimi rastišči je vsekakor Boč. V veliko večjem številu (mogoče tudi zaradi manjše obljudenosti v preteklosti) pa jo je moč najti na rastišču Boletina - Ponikva. Zemljišče je bilo še nedolgo nazaj last družine Gorjanc - kmetija mojih starih staršev in strica. Ob vpisu na študij sem v prvem letniku precej aktivno opazoval rastišče. V tem času sem sošolko Matejo Verbič nahecal, da je narisala (glej spodaj) velikonočnico v različnih stadijih na podlagi mojih fotografij - v naravi sem razgrnil rastje okoli velikonočnice in prislonil bel papir ter naredil nekaj posnetkov. Meni (laiku) so matejine ilustracije naravnost fantastične, a sem z leti in drugimi zanimivostmi povsem pozabil na njih. Pred kratkim sem našel ilustracije pri pospravljanju omare se odločil, da jih "objavim" na spletu in tako delim z "vsemi". Avtorstvo ilustracij je seveda še vedno od Mateje! Originalnih fotografij žal nisem več našel.

Najprej nekaj "naključnih" povezav glede velikonočnice:
Sedaj pa ilustracije:


From Bloggerjeve slike


From Bloggerjeve slike


From Bloggerjeve slike


From Bloggerjeve slike


From Bloggerjeve slike


From Bloggerjeve slike


From Bloggerjeve slike

2010-02-27

9th WCGALP: Flexible Bayesian Inference of Animal Model Parameters Using BUGS Program

Conference madness is continuing ;) Bellow is my contribution for 9th WCGALP (World Congress on Genetics Applied to Livestock Production), which is held every four years. The above site describes it as: "This congress is the premier meeting point for scientists around the world involved in genetic improvement of livestock". My contribution is again on fitting so called animal model (pedigree based mixed model) in BUGS. The contributions must be very short (only four pages), so there is not much to show. I hope the contribution is going to be accepted so that I can spread this idea among the animal breeders.
Flexible Bayesian Inference of Animal Model Parameters Using BUGS Program

2010-02-12

WAMWiki - wild animal models wiki

WAMWiki is a great place with tutorials on how to fit animal models with ASREML, WOMBAT and MCMCglmm. Perhaps I could add my work with animal models in BUGS in the future ;) There are several things there (testing for random effects, bivariate models, ...) and a nice description of pedantics software, that can report about information in the pedigree - structure, ...

2010-02-09

LyX and Sweave with R on Windows XP or Vista

Jeff Laake contributed instructions on how to setup LyX to work with Sweave on Windows XP or Vista so that others might benefit. I did not read the instructions thorougly! He expanded the work of Murat. As far as I understand, in comparison to my approach they avoid the need for unix shell, which is nice!

P.S. (2010-04-01) See also LyX Wiki


2010-02-08

LyX-Sweave - use of Ctrl+Enter

Yihui writes:
I have been wondering if it is possible to use Enter instead of Ctrl+Enter in the Sweave code chunk in LyX. It is not quite convenient to press Ctrl+Enter, what's more, we are not able to copy R code and paste it into LyX from other editors (vice versa). I see we are allowed to use a single carriage return in LaTeX code embedded in LyX. Why must Sweave code use Ctrl+Enter? Thanks!
My reply:
LyX prohibits the use of enter key for anything else than starting a new paragraph - this is default behaviour which is great for writing, but notorious for using Sweave with LyX. When you press enter you get a new paragraph, which would start a new chunk of code or is it new paragraph with default style - I do not remember the details at the moment. I agree that this is far from handy, but I was not able to find a solution for this. However, as you mention, it is possible to use ERT LaTeX boxes, to overcome this.

2010-01-29

LyX-Sweave on Ubuntu (Karmic)

Bret Collier sends the following install instructions for LyX-Sweave combination that worked for him on his Ubuntu (Karmic) setup.



Nothing was wrong with your instructions at http://www.bioconductor.org/CRAN/contrib/extra/lyx under install from what I can tell (other than where I put noweb.sty).

Here are the install steps I used (which basically follow the ones you provide on CRAN but I tried to list exactly what I did) to install Lyx 1.6.4 on my Linux Ubuntu Karmic Dual Core 32bit laptop with R v2.10.1 (2009-12-14). Note there are some minor differences with my install routine and what I found at- http://blog.nextbiomotif.com/2009/10/primer-to-sweave-with-lyx.html. Location of Sweave.sty is different.


1: I used Synaptic package manager to install Lyx and LaTex (tex-live). I updated R using sudo apt-get install and sudo apt-get install r-base before anything else.

2. Find the so-called LyX user directory or LyX library directory via the Help -> About LyX menu within LyX (mine was /usr/share/lyx/)

3. Save the 'preferences' file from CRAN (I saved unedited) into- /usr/share/lyx/

4. I saved all the literate-*.* files from CRAN to the layouts sub-directory of the Lyx user directory- /usr/share/lyx/layouts/

5. I put noweb.sty into- /usr/share/texmf/tex/latex/

6. I put Sweave.sty into- /usr/share/texmf/

7. I put any other .sty into- /usr/share/texmf/tex/latex/

8. I used texhash (or sudo texhash) to make sure all the .sty are located.

9. I made sure R was in the path (opened Terminal and typed in "R")

10. I used sudo lyx to open Lyx, then I went Tools->Reconfigure, got the reconfigure successful window, then I closed Lyx

11: Then I opened Lyx and everything was working on the Lyx end.

2010-01-21

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.