jmv and Sweave

General help and assistance with jamovi. Bug reports can be made at our issues page: https://github.com/jamovi/jamovi/issues . (If you're unsure feel free to discuss it here)

by jantonie » Fri Sep 14, 2018 11:18 am

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}
###############################################################################
Attachments
Example.png
Example.png (38.72 KiB) Viewed 1148 times
jantonie
 
Posts: 16
Joined: Tue Oct 17, 2017 11:58 am

by jonathon » Fri Sep 14, 2018 11:48 am

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
User avatar
jonathon
 
Posts: 993
Joined: Fri Jan 27, 2017 10:04 am

by jantonie » Fri Sep 14, 2018 12:21 pm

The speed with which you reply impresses me! Thank you very much for your answer.

Jantonie
jantonie
 
Posts: 16
Joined: Tue Oct 17, 2017 11:58 am

by MAgojam » Sat Sep 15, 2018 3:00 pm

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 1118 times

I hope it can help.

Best regards.
Maurizio
User avatar
MAgojam
 
Posts: 63
Joined: Thu Jun 08, 2017 2:33 pm
Location: Parma (Italy)


Return to Help