I'm trying to run a Rmd file and save all the pictures it contains and for that I'm setting up the document as following:
---
title: "LogR_PCA"
date: "12/14/2021"
output:
html_document:
keep_md: yes
---
knitr::opts_chunk$set(dev = "png",
dpi = 300,
fig.width = 7,
echo = FALSE,
cache = TRUE)
but when I run code chunks with pictures like this one:
ind.p.2 = fviz_pca_biplot(res_pca,
# Individuals
geom.ind = "point",
fill.ind = snv_data$clade, col.ind = "black",
pointshape =21, pointsize = 1.5,
palette = "jco",
addEllipses = TRUE,
# Variables
alpha.var ="contrib", col.var = "contrib",
gradient.cols = "Red",
legend.title = list(fill = "Variantes", color = "Contrib",
alpha = "Contrib")
)
ind.p.2
It doesn't save on the working directory.
Is there anything I need to do?