Learn R Programming

eeptools (version 0.3.1)

plotForWord: Save a graphic as a Windows MetaFile

Description

Convenience function for producing Windows MetaFile graphics for Microsoft documents

Usage

plotForWord(x, fn)

Arguments

x
A stored plot object to be printed
fn
A string for the filename without any file extension

Value

  • Nothing. Saves a .wmf with filename fn in the working directory.

Details

Uses parameters designed for import into Word and PowerPoint documents. These are a width of 12, height of 9, poitnsize of 16, and using Windows serif fonts.

Examples

Run this code
data(cars)
library(ggplot2) # works with ggplot objects
myplot <- qplot(speed~dist, data=cars)
plotForWord(myplot, "speedanddistance")

Run the code above in your browser using DataLab