gg2xlsx: Export chunk plot to editable xlsx file

View source: R/fun-gg2xlsx.R

gg2xlsxR Documentation

Export chunk plot to editable xlsx file

Description

Export chunk plot to editable xlsx file

Usage

gg2xlsx(p, dir = "pic/ggsave-xlsx/", num_section = 2, num_fig, names_chunk)

Arguments

p

ggplot object.

dir

character. relative dir path string

num_section

integer. default 2

num_fig

character.

names_chunk

character. name of chunk, from which the plot generateed.

Value

output xlsx file

Examples

## Not run: 
  p0 <- plot(1:10, 1:10)
  gg2xlsx(p = p0, dir="pic/ggsave-xlsx/",
        num_section = 5,num_fig = 2,
        names_chunk = "ggplot-chunk")

## End(Not run)

huhuaping/techme documentation built on June 16, 2024, 3:38 a.m.