2
votes
1answer
399 views

How can I have subfloats with knitr in LyX?

I have two knitr chunks in LyX that work fine by themselves in their separate floats (this post applies to both figures and tables). But when I try to put them in as subfloats (by selecting both and ...
1
vote
1answer
296 views

How do I reference an object inline in LyX that is in a knitr chunk?

Suppose I have an object that was processed in an earlier knitr chunk, say my_df <- read.dta('somefile.dta') x <- mean(my_df$age) Putting an inline knitr chunk does not work -- the knitr ...