diff --git a/_extensions/jmgirard/embedpdf/_extension.yml b/_extensions/jmgirard/embedpdf/_extension.yml new file mode 100644 index 0000000..7850a79 --- /dev/null +++ b/_extensions/jmgirard/embedpdf/_extension.yml @@ -0,0 +1,8 @@ +title: embedpdf +author: Jeffrey Girard +version: 0.2.0 +quarto-required: ">=1.3.0" +contributes: + shortcodes: + - embedpdf.lua + diff --git a/_extensions/jmgirard/embedpdf/embedpdf.lua b/_extensions/jmgirard/embedpdf/embedpdf.lua new file mode 100644 index 0000000..b5accbb --- /dev/null +++ b/_extensions/jmgirard/embedpdf/embedpdf.lua @@ -0,0 +1,35 @@ +function pdf(args, kwargs) + local data = pandoc.utils.stringify(args[1]) + local width = pandoc.utils.stringify(kwargs['width']) + local height = pandoc.utils.stringify(kwargs['height']) + local class = pandoc.utils.stringify(kwargs['class']) + local border = pandoc.utils.stringify(kwargs['border']) + + if width ~= '' then + width = 'width="' .. width .. '" ' + end + + if height ~= '' then + height = 'height="' .. height .. '" ' + end + + if class ~= '' then + class = 'class="' .. class .. '" ' + end + + if border ~= '' then + border = 'border="' .. border .. '" ' + end + + -- detect html + if quarto.doc.isFormat("html:js") then + return pandoc.RawInline('html', '

Unable to display PDF file. Download instead.

') + else + return pandoc.Null() + end + +end + +function embedpdf(...) + return pdf(...) +end diff --git a/_freeze/posts/sas2024/index/execute-results/html.json b/_freeze/posts/sas2024/index/execute-results/html.json new file mode 100644 index 0000000..672e1a9 --- /dev/null +++ b/_freeze/posts/sas2024/index/execute-results/html.json @@ -0,0 +1,17 @@ +{ + "hash": "757ae8f9435577e3ea1b0f57aef93c29", + "result": { + "engine": "knitr", + "markdown": "---\ntitle: \"SAS 2024 Conference\"\ndescription: \"Society for Affective Science\"\nauthor: \"Dasha Yermol\"\ndate: \"2024-03-02\"\nimage: conference.webp\ndraft: false\ncategories:\n - announcement\n - conference\nformat:\n html:\n code-fold: true\n code-summary: \"Show the code\"\n page-layout: full\n toc: false\n---\n\n\n\n### Does Smile Synchrony Predict Working Alliance Quality in Psychotherapy?\n\n\n\n\n\n\n\n\n\n\n\n\n{{< pdf SAS2024.pdf class=pdf >}}\n\n\n\n\n## Additional Figures Below\n\n### Histograms of Variables:\n\n::: {.cell}\n::: {.cell-output-display}\n![](index_files/figure-html/unnamed-chunk-3-1.png){width=672}\n:::\n:::\n\n\n![ ](smile_hist.png)\n\n\n::: {.cell}\n::: {.cell-output-display}\n![](index_files/figure-html/unnamed-chunk-4-1.png){width=672}\n:::\n:::\n\n\n\n## Figures including all sessions and patients (without clustering):\n\n::: {.cell}\n\n```{.r .cell-code}\ndata %>% \n ggplot(mapping = aes(x = fisher_z, y = wai)) +\n geom_point() +\n geom_smooth(method = \"lm\", se = FALSE, fullrange = TRUE) +\n labs(\n x = \"Smile Synchrony\",\n y = \"Working Alliance Scores\",\n title = \"Working Alliance by Smile Synchrony\"\n )\n```\n\n::: {.cell-output-display}\n![](index_files/figure-html/unnamed-chunk-5-1.png){width=672}\n:::\n:::\n\n###### In this figure, each dot represents the relationship between working alliance scores and smile synchrony (including all sessions from patients)\n##\n\n::: {.cell}\n\n```{.r .cell-code}\ndata %>% \n ggplot(mapping = aes(x = fisher_z, y = wai, colour = factor(patient_id))) +\n geom_point() +\n geom_smooth(mapping = aes(group = patient_id), method = \"lm\", se = FALSE, fullrange = TRUE) +\n labs(\n colour = \"Patient ID\",\n x = \"Smile Synchrony\",\n y = \"Working Alliance Scores\",\n title = \"Working Alliance by Smile Synchrony\"\n )\n```\n\n::: {.cell-output-display}\n![](index_files/figure-html/unnamed-chunk-6-1.png){width=672}\n:::\n:::\n\n###### In this figure, each line represents the relationship between working alliance scores and smile synchrony for each patient. This figure includes data from all sessions.\n\n##\n\n## Figures split by individual patients:\n\n::: {.cell}\n\n```{.r .cell-code}\ndata %>% \n group_by(patient_id) %>%\n ggplot(mapping = aes(x = fisher_z, y = wai)) + \n geom_point() +\n geom_smooth(mapping = aes(group = patient_id), method = \"lm\", se = FALSE, fullrange = TRUE) +\n labs(title = \"Working Alliance by Smile Synchrony for each Patient\",\n x = \"Smile Synchrony\",\n y = \"Working Alliance Scores\") +\n scale_x_continuous(breaks=seq(from=0.2,to=0.4,by=0.1)) +\n coord_cartesian(xlim = c(0.2, 0.4), ylim = c(0, 70)) +\n theme_gray(base_size = 12) +\n theme(plot.title = element_text(hjust = 0.5)) +\n facet_wrap(~patient_id, ncol = 8) +\n theme(panel.spacing = grid::unit(1, \"lines\"))\n```\n\n::: {.cell-output-display}\n![](index_files/figure-html/unnamed-chunk-7-1.png){width=100%}\n:::\n:::\n\n###### Each subfigure represents the relationship between working alliance scores and smile synchrony for each patient. This figure includes data from all sessions, but we have some missing data (e.g., patient #1025, patient #1072).\n\n##\n\n\n::: {.cell}\n\n```{.r .cell-code}\ndata %>% \n group_by(session) %>%\n ggplot(mapping = aes(x = session, y = wai)) + \n coord_cartesian(ylim = c(20, 65)) +\n geom_point() +\n geom_smooth(mapping = aes(group = patient_id), method = \"lm\", se = FALSE, fullrange = TRUE) +\n labs(title = \"Working Alliance Scores across Sessions\",\n x = \"Session\",\n y = \"Working Alliance Scores\") +\n theme_gray(base_size = 12) +\n theme(plot.title = element_text(hjust = 0.5)) +\n facet_wrap(~patient_id)\n```\n\n::: {.cell-output-display}\n![](index_files/figure-html/unnamed-chunk-8-1.png){width=100%}\n:::\n:::\n\n\n##\n\n\n::: {.cell}\n\n```{.r .cell-code}\ndata %>% \n group_by(session) %>%\n ggplot(mapping = aes(x = session, y = fisher_z)) +\n geom_point() +\n geom_smooth(mapping = aes(group = patient_id), method = \"lm\", se = FALSE, fullrange = TRUE) +\n labs(title = \"Smile Synchrony across Sessions\",\n x = \"Session\",\n y = \"Smile Synchrony\") +\n scale_y_continuous(breaks=seq(from=0.2,to=0.4,by=0.1)) +\n theme_gray(base_size = 12) +\n theme(plot.title = element_text(hjust = 0.5)) +\n facet_wrap(~patient_id)\n```\n\n::: {.cell-output-display}\n![](index_files/figure-html/unnamed-chunk-9-1.png){width=100%}\n:::\n:::\n", + "supporting": [ + "index_files" + ], + "filters": [ + "rmarkdown/pagebreak.lua" + ], + "includes": {}, + "engineDependencies": {}, + "preserve": {}, + "postProcess": true + } +} \ No newline at end of file diff --git a/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-3-1.png b/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-3-1.png new file mode 100644 index 0000000..261cc8a Binary files /dev/null and b/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-3-1.png differ diff --git a/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-4-1.png b/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-4-1.png new file mode 100644 index 0000000..dc1e88c Binary files /dev/null and b/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-4-1.png differ diff --git a/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-5-1.png b/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-5-1.png new file mode 100644 index 0000000..112357b Binary files /dev/null and b/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-5-1.png differ diff --git a/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-6-1.png b/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-6-1.png new file mode 100644 index 0000000..560cde2 Binary files /dev/null and b/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-6-1.png differ diff --git a/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-7-1.png b/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-7-1.png new file mode 100644 index 0000000..fde2f5b Binary files /dev/null and b/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-7-1.png differ diff --git a/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-8-1.png b/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-8-1.png new file mode 100644 index 0000000..94bb0bc Binary files /dev/null and b/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-8-1.png differ diff --git a/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-9-1.png b/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-9-1.png new file mode 100644 index 0000000..0d32ba9 Binary files /dev/null and b/_freeze/posts/sas2024/index/figure-html/unnamed-chunk-9-1.png differ diff --git a/_quarto.yml b/_quarto.yml index 53a57eb..e3d718d 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -26,7 +26,7 @@ website: text: Opportunities - href: contact.qmd text: Contact - page-footer: "Copyright 2023 © Jeffrey Girard" + page-footer: "Copyright 2024 © Jeffrey Girard" google-analytics: "G-K5TXS64QLN" site-url: https://affcom.ku.edu repo-url: https://github.com/jmgirard/affcomlab diff --git a/docs/news.html b/docs/news.html index 8ef15f5..4b67d4a 100644 --- a/docs/news.html +++ b/docs/news.html @@ -216,7 +216,7 @@
Categories
-
+

@@ -244,7 +244,7 @@

-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+