This project is read-only.

Adding The Lattice Package with R.NET

Oct 26, 2011 at 7:25 PM

I worked through the example on how to display an R graph in .NET ( and was hoping to use higher level graphics such as lattice and ggplot. I wrote some code but when I click my button I get the message "Parse Exception was unhandled - error in the application" when I reach the last line of code. Does R.NET support lattice? Any suggestions?

private void button1_Click(object sender, EventArgs e)
            engine.EagerEvaluate("myDF <- data.frame('Letters' = c('A','B','C'), 'Numbers' = c(1, 2, 3))");
            engine.EagerEvaluate("barchart(Numbers~Letters, data = myDF, xlab = 'Letters', ylab = 'Numbers')");  

Oct 28, 2011 at 6:15 PM

I also tried "library(lattice)" without success.

Dec 2, 2011 at 7:53 PM

Did you try "install.packages("lattice", .Library)" make sure the library is indeed installed? I am able to use lattice.