| ggsave_facebook | R Documentation | 
Save at the right dimensions at 300 dpi
ggsave_facebook(
  filename,
  plot = ggplot2::last_plot(),
  device = NULL,
  path = NULL,
  scale = 3,
  width = 1200,
  height = 630,
  units = "px",
  dpi = 300,
  limitsize = FALSE,
  bg = "white",
  ...
)
| filename | File name to create on disk. | 
| plot | Plot to save, defaults to last plot displayed. | 
| device | Device to use. Can either be a device function
(e.g. png), or one of "eps", "ps", "tex" (pictex),
"pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf" (windows only). If
 | 
| path | Path of the directory to save plot to:  | 
| scale | Multiplicative scaling factor. | 
| width,height | Plot size in units expressed by the  | 
| units | One of the following units in which the  | 
| dpi | Plot resolution. Also accepts a string input: "retina" (320), "print" (300), or "screen" (72). Applies only to raster output types. | 
| limitsize | When  | 
| bg | Background colour. If  | 
| ... | Other arguments passed on to the graphics device function,
as specified by  | 
filename, quietly
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.