Created
March 5, 2021 15:24
-
-
Save deomorxsy/f7a75dead0d2da109b3d39a57755e68d to your computer and use it in GitHub Desktop.
Dois meios de mostrar imagens em arquivos rmd.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
author: deomorxsy | |
title: Meios de mostrar imagens em arquivos rmd | |
date: 05/03/2020 | |
output: pdf_document | |
--- | |
# Abstract | |
Podemos usar as bibliotecas png e grid para exibir a imagem, especificando suas dimensões: | |
```{r fig.width=5, fig.height=10,echo=FALSE} | |
library(png) | |
library(grid) | |
img <- readPNG("./images/cluster-overview.png") | |
grid.raster(img) | |
``` | |
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. | |
O mesmo não acontece se utilizarmos apenas a estrutura básica de um arquivo markdown: | |
 | |
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment