I'm creating charts using ggplot2 inside ODFWeave code chunks. I am setting the ODFWeave dimensions to 5x5in, but the graphs are being created at 480x480 px which looks like a default. How can I make these larger and match them to the ODF size to get a good quality print?
ODFWeave Options:
imageDefs <- getImageDefs()
imageDefs$dispWidth <- 5
imageDefs$dispHeight<- 5
setImageDefs(imageDefs)
Code snippet in weave doc:
<<ClosureGraph, echo = FALSE, fig = TRUE>>=
#function returns a ggplot obj.
p<-closuresbyperiod()
print(p)
@