addPdfImage: Make a PDF output of a plot

Description Usage Arguments Value Examples

Description

Make a PDF output of a plot.

Usage

1
addPdfImage(graph, name = "image", w = 12, h = 12)

Arguments

graph

The graph object to input

name

A character name to name your file. It can have a filepath as well.

w

The width, in inches, of your image, default set to 12.

h

The height, in inches, of your image, default set to 12.

Value

No ret

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
sumo <- cleanPatentData(patentData = patentr::acars, columnsExpected = sumobrainColumns,
cleanNames = sumobrainNames,
dateFields = sumobrainDateFields,
dateOrders = sumobrainDateOrder,
deduplicate = TRUE,
cakcDict = patentr::cakcDict,
docLengthTypesDict = patentr::docLengthTypesDict,
keepType = "grant",
firstAssigneeOnly = TRUE,
assigneeSep = ";",
stopWords = patentr::assigneeStopWords)

# df <- dplyr::select(sumo, title, abstract)
df <- sumo[,c("title","abstract")]
addPdfImage(wordCloudIt(df, excludeWords, minfreq = 20,
                        random.order = FALSE, rot.per = 0.25),"wordCloud")

kamilien1/patentR documentation built on May 20, 2019, 7:19 a.m.