Page 1 of 1

jmv and Sweave

Posted: Fri Sep 14, 2018 11:18 am
by jantonie
Hello,

When I use the jmv library with Sweave, the pdf is not very aesthetic. How to correct this?

Thank you very much in advance for your response.

Best regard

Jantonie

###############################################################################
Example.Rwd:

\documentclass{article}

\begin{document}
\SweaveOpts{concordance=TRUE}

<<echo=FALSE>>=
library(jmv)
x <- rnorm(1000)
data <- data.frame(x)
descriptives(data=data, vars="x", box=TRUE)
@

\end{document}
###############################################################################

Re: jmv and Sweave

Posted: Fri Sep 14, 2018 11:48 am
by jonathon
hmm, this looks to be a character encoding issue... and i'd say this is probably an issue with Sweave... but i don't know a lot about Sweave. is it possible to set the encoding to UTF-8?

https://stackoverflow.com/questions/750 ... ht#7516627

there do just seem to be unpredictable encoding issues with R. i suspect if i did this on my computer it would work fine :/

i'm getting to the point where i'll probably add an 'ascii mode'. special characters like the horizontal lines we use for tables sometimes don't display properly, like here.

jonathon

Re: jmv and Sweave

Posted: Fri Sep 14, 2018 12:21 pm
by jantonie
The speed with which you reply impresses me! Thank you very much for your answer.

Jantonie

Re: jmv and Sweave

Posted: Sat Sep 15, 2018 3:00 pm
by MAgojam
Hi,
with my environment and Win 7 Pro (ITA), things seem to go differently than reported by @jantonie :thinking: .

Here is the sceenshot:
Screenshot 2018-09-15 16.21.48.png
Screenshot 2018-09-15 16.21.48.png (229.34 KiB) Viewed 3259 times
I hope it can help.

Best regards.
Maurizio