Skip to content

using plot.momentuHMM in rmarkdown files #181

Answered by bmcclintock
justin-boldsen asked this question in Q&A
Discussion options

You must be logged in to vote

Before {momentuHMM} v2.0.0, you'd normally need to save the plots (e.g. as a PDF) and include them in your document using \includegraphics:

    ```{r example, echo=FALSE, results='hide'}
    pdf("example.pdf")
    plot(example$m, ask=FALSE)
    dev.off()
    ```
    \begin{figure}
        \centering
        \includegraphics[page=1,width=0.45\textwidth]{example.pdf}
        \includegraphics[page=2,width=0.45\textwidth]{example.pdf}
        \caption{Example}
        \label{fig:example}
    \end{figure}

However, with v2.0.0 (currently only available in the develop branch on GitHub), one can use the return argument to: 1) return the estimates, standard errors, and confidence intervals of the…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bmcclintock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants