# NOT RUN {
set.seed(123)
# creating a dataframe with stats results
stats_df <- cbind.data.frame(
statistic = 5.494,
df = 29.234,
p.value = 0.00001,
estimate = -1.980,
conf.level = 0.95,
conf.low = -2.873,
conf.high = -1.088
)
# expression for *t*-statistic with Cohen's *d* as effect size
# note that the plotmath expressions need to be quoted
expr_template(
no.parameters = 1L,
data = stats_df,
statistic.text = quote(italic("t")),
effsize.text = quote(italic("d")),
n = 32L,
n.text = quote(italic("n")["no.obs"]),
k = 3L,
k.df = 3L
)
# }
Run the code above in your browser using DataLab