2019-03-19 21:14:44 +00:00
|
|
|
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
2024-01-11 16:06:40 +00:00
|
|
|
\lyxformat 620
|
2013-05-17 02:40:10 +00:00
|
|
|
\begin_document
|
|
|
|
\begin_header
|
2016-01-12 21:30:37 +00:00
|
|
|
\save_transient_properties true
|
2019-03-25 15:32:27 +00:00
|
|
|
\origin /systemlyxdir/templates/Articles/
|
2013-05-17 02:40:10 +00:00
|
|
|
\textclass RJournal
|
|
|
|
\use_default_options true
|
|
|
|
\begin_modules
|
|
|
|
knitr
|
|
|
|
\end_modules
|
2020-12-29 17:03:05 +00:00
|
|
|
\maintain_unincluded_children no
|
2013-05-17 02:40:10 +00:00
|
|
|
\language english
|
2018-08-05 07:09:47 +00:00
|
|
|
\language_package default
|
2019-05-08 17:59:57 +00:00
|
|
|
\inputencoding utf8
|
2020-12-29 17:03:05 +00:00
|
|
|
\fontencoding auto
|
2015-11-13 18:14:45 +00:00
|
|
|
\font_roman "default" "default"
|
|
|
|
\font_sans "default" "default"
|
|
|
|
\font_typewriter "default" "default"
|
|
|
|
\font_math "auto" "auto"
|
2013-05-17 02:40:10 +00:00
|
|
|
\font_default_family default
|
|
|
|
\use_non_tex_fonts false
|
|
|
|
\font_sc false
|
2022-12-11 16:12:05 +00:00
|
|
|
\font_roman_osf false
|
2020-12-29 17:03:05 +00:00
|
|
|
\font_sans_osf false
|
|
|
|
\font_typewriter_osf false
|
2015-11-13 18:14:45 +00:00
|
|
|
\font_sf_scale 100 100
|
|
|
|
\font_tt_scale 100 100
|
2017-04-24 04:03:19 +00:00
|
|
|
\use_microtype false
|
|
|
|
\use_dash_ligatures false
|
2013-05-17 02:40:10 +00:00
|
|
|
\graphics default
|
|
|
|
\default_output_format default
|
|
|
|
\output_sync 0
|
2013-08-19 09:19:26 +00:00
|
|
|
\bibtex_command bibtex
|
2013-05-17 02:40:10 +00:00
|
|
|
\index_command default
|
|
|
|
\paperfontsize default
|
|
|
|
\spacing single
|
|
|
|
\use_hyperref false
|
|
|
|
\papersize default
|
|
|
|
\use_geometry false
|
2014-03-23 16:32:50 +00:00
|
|
|
\use_package amsmath 1
|
|
|
|
\use_package amssymb 1
|
2017-10-19 12:47:51 +00:00
|
|
|
\use_package cancel 1
|
2014-03-23 16:32:50 +00:00
|
|
|
\use_package esint 1
|
|
|
|
\use_package mathdots 1
|
2017-10-19 12:47:51 +00:00
|
|
|
\use_package mathtools 1
|
2014-03-23 16:32:50 +00:00
|
|
|
\use_package mhchem 1
|
2017-10-19 12:47:51 +00:00
|
|
|
\use_package stackrel 1
|
|
|
|
\use_package stmaryrd 1
|
|
|
|
\use_package undertilde 1
|
2014-03-23 16:32:50 +00:00
|
|
|
\cite_engine natbib
|
|
|
|
\cite_engine_type authoryear
|
|
|
|
\biblio_style plainnat
|
2013-05-17 02:40:10 +00:00
|
|
|
\use_bibtopic false
|
|
|
|
\use_indices false
|
|
|
|
\paperorientation portrait
|
|
|
|
\suppress_date false
|
2014-03-23 16:32:50 +00:00
|
|
|
\justification true
|
2013-05-17 02:40:10 +00:00
|
|
|
\use_refstyle 1
|
2017-11-20 01:33:28 +00:00
|
|
|
\use_minted 0
|
2020-12-29 17:03:05 +00:00
|
|
|
\use_lineno 0
|
2013-05-17 02:40:10 +00:00
|
|
|
\index Index
|
|
|
|
\shortcut idx
|
|
|
|
\color #008000
|
|
|
|
\end_index
|
|
|
|
\secnumdepth 3
|
|
|
|
\tocdepth 3
|
|
|
|
\paragraph_separation indent
|
|
|
|
\paragraph_indentation default
|
2017-04-24 04:03:19 +00:00
|
|
|
\is_math_indent 0
|
2017-08-14 06:31:24 +00:00
|
|
|
\math_numbering_side default
|
2017-04-24 04:03:19 +00:00
|
|
|
\quotes_style english
|
2017-11-20 01:33:28 +00:00
|
|
|
\dynamic_quotes 0
|
2013-05-17 02:40:10 +00:00
|
|
|
\papercolumns 1
|
|
|
|
\papersides 1
|
|
|
|
\paperpagestyle default
|
2022-12-11 16:12:05 +00:00
|
|
|
\tablestyle default
|
2013-05-17 02:40:10 +00:00
|
|
|
\tracking_changes false
|
|
|
|
\output_changes false
|
2022-12-11 16:12:05 +00:00
|
|
|
\change_bars false
|
|
|
|
\postpone_fragile_content false
|
2013-05-17 02:40:10 +00:00
|
|
|
\html_math_output 0
|
|
|
|
\html_css_as_file 0
|
|
|
|
\html_be_strict false
|
2022-12-11 16:12:05 +00:00
|
|
|
\docbook_table_output 0
|
|
|
|
\docbook_mathml_prefix 1
|
2013-05-17 02:40:10 +00:00
|
|
|
\end_header
|
|
|
|
|
|
|
|
\begin_body
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2019-03-19 21:14:44 +00:00
|
|
|
\begin_inset Note Note
|
|
|
|
status open
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
This document requires the LaTeX style file
|
|
|
|
\begin_inset Quotes eld
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
RJournal.sty
|
|
|
|
\begin_inset Quotes erd
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
See
|
|
|
|
\begin_inset Flex URL
|
|
|
|
status open
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
|
|
|
|
https://journal.r-project.org/submissions.html
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
2013-05-17 02:40:10 +00:00
|
|
|
\begin_inset ERT
|
|
|
|
status open
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
|
2022-12-11 16:12:05 +00:00
|
|
|
<<setup,
|
|
|
|
include=FALSE>>=
|
2013-05-17 02:40:10 +00:00
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
|
2022-12-11 16:12:05 +00:00
|
|
|
render_sweave() # use Schunk,
|
|
|
|
Sinput and Soutput environments defined by RJournal
|
2013-05-17 02:40:10 +00:00
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
|
2013-05-07 23:33:15 +00:00
|
|
|
set_header(highlight = '') # no need for
|
2013-05-17 02:40:10 +00:00
|
|
|
\backslash
|
|
|
|
usepackage{Sweave}
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
|
|
|
|
@
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Title
|
|
|
|
Capitalized Title Here
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Author
|
|
|
|
by Author A and Author B
|
|
|
|
\end_layout
|
|
|
|
|
2013-05-08 03:56:50 +00:00
|
|
|
\begin_layout Abstract
|
2013-05-17 02:40:10 +00:00
|
|
|
An abstract of less than 150 words.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Section
|
|
|
|
Section title in sentence case
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Write something here.
|
|
|
|
A sample citation is
|
|
|
|
\begin_inset CommandInset citation
|
|
|
|
LatexCommand citet
|
2014-03-30 14:35:09 +00:00
|
|
|
key "article-minimal"
|
2017-04-24 04:03:19 +00:00
|
|
|
literal "true"
|
2013-05-17 02:40:10 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Section
|
|
|
|
R code chunks
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Press
|
2013-05-07 23:38:01 +00:00
|
|
|
\begin_inset Info
|
|
|
|
type "shortcut"
|
|
|
|
arg "ert-insert"
|
|
|
|
\end_inset
|
|
|
|
|
2013-05-07 23:33:15 +00:00
|
|
|
and input R code chunks which will be compiled with the
|
2013-05-17 02:40:10 +00:00
|
|
|
\series bold
|
|
|
|
knitr
|
|
|
|
\series default
|
|
|
|
package (
|
|
|
|
\begin_inset Flex URL
|
|
|
|
status collapsed
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
|
2024-10-17 11:45:53 +00:00
|
|
|
"https://yihui.name/knitr/
|
2013-05-17 02:40:10 +00:00
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
).
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
\begin_inset ERT
|
|
|
|
status open
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
|
2022-12-11 16:12:05 +00:00
|
|
|
<<sample-chunk,
|
|
|
|
echo=TRUE>>=
|
2013-05-17 02:40:10 +00:00
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
|
|
|
|
x=1:10
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
|
|
|
|
rev(x)
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
|
|
|
|
summary(x)
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
|
|
|
|
@
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2022-12-11 16:12:05 +00:00
|
|
|
You can also plot your data;
|
|
|
|
see Figure
|
2013-05-17 02:40:10 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand ref
|
|
|
|
reference "fig:sample-figure"
|
2022-12-11 16:12:05 +00:00
|
|
|
nolink "false"
|
2013-05-17 02:40:10 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
for example.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
\begin_inset Float figure
|
|
|
|
placement tbph
|
2022-12-11 16:12:05 +00:00
|
|
|
alignment document
|
2013-05-17 02:40:10 +00:00
|
|
|
wide false
|
|
|
|
sideways false
|
|
|
|
status open
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
\begin_inset ERT
|
|
|
|
status open
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
|
2022-12-11 16:12:05 +00:00
|
|
|
<<sample-figure,
|
|
|
|
fig.width=5,
|
|
|
|
fig.height=3,
|
|
|
|
out.width='.4
|
2013-05-17 02:40:10 +00:00
|
|
|
\backslash
|
|
|
|
|
|
|
|
\backslash
|
2022-12-11 16:12:05 +00:00
|
|
|
linewidth',
|
|
|
|
fig.align='center',
|
|
|
|
dev=c('pdf','postscript')>>=
|
2013-05-17 02:40:10 +00:00
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
|
|
|
|
par(mar = c(4,4,.1,.1))
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
|
2022-12-11 16:12:05 +00:00
|
|
|
plot(x,
|
|
|
|
pch=19,
|
|
|
|
col=1:10)
|
2013-05-17 02:40:10 +00:00
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
|
|
|
|
@
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
2014-03-23 16:32:50 +00:00
|
|
|
\begin_inset Caption Standard
|
2013-05-17 02:40:10 +00:00
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
A sample figure.
|
|
|
|
\begin_inset CommandInset label
|
|
|
|
LatexCommand label
|
|
|
|
name "fig:sample-figure"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
\begin_inset Note Note
|
|
|
|
status open
|
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
2016-01-13 02:22:37 +00:00
|
|
|
When you insert a Bib\SpecialChar TeX
|
2022-12-11 16:12:05 +00:00
|
|
|
bibliography here,
|
|
|
|
do not use any bib styles.
|
2013-05-17 02:40:10 +00:00
|
|
|
The R Journal has declared the style to be
|
|
|
|
\begin_inset Quotes eld
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
abbrvnat
|
|
|
|
\begin_inset Quotes erd
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
\begin_inset CommandInset bibtex
|
|
|
|
LatexCommand bibtex
|
2014-03-30 14:35:09 +00:00
|
|
|
bibfiles "xampl"
|
2013-05-17 02:40:10 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
2013-05-08 00:48:28 +00:00
|
|
|
\begin_layout Address
|
2013-05-17 02:40:10 +00:00
|
|
|
Author A
|
|
|
|
\begin_inset Newline newline
|
|
|
|
\end_inset
|
|
|
|
|
2013-05-07 23:38:01 +00:00
|
|
|
Press
|
|
|
|
\begin_inset Info
|
|
|
|
type "shortcut"
|
|
|
|
arg "newline-insert newline"
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
to input
|
2013-05-17 02:40:10 +00:00
|
|
|
\begin_inset Newline newline
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
address here
|
|
|
|
\begin_inset Newline newline
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset Flex Email
|
2013-05-08 00:57:42 +00:00
|
|
|
status open
|
2013-05-17 02:40:10 +00:00
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
author.a@email
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
2013-05-08 00:48:28 +00:00
|
|
|
\begin_layout Address
|
2013-05-17 02:40:10 +00:00
|
|
|
Author B
|
|
|
|
\begin_inset Newline newline
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset Flex Email
|
2013-05-08 00:57:42 +00:00
|
|
|
status open
|
2013-05-17 02:40:10 +00:00
|
|
|
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
author.b@email
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_body
|
|
|
|
\end_document
|