-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat:
plot_layout_properties()
: accept index, new legend arg, plot …
…current slide by default - `plot_layout_properties()`: Now prints the current slide's layout by default, if not layout name is provided explicitly (#595). - Accept the layout index (see `layout_summary()`) as alternative to the layout name (suggestion 2 in #595). - `plot_layout_properties()`: Gains arg `legend` to add a legend to plot
- Loading branch information
1 parent
92c7a32
commit 182923a
Showing
15 changed files
with
220 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
x <- read_pptx() | ||
|
||
# select layout explicitly | ||
plot_layout_properties(x = x, layout = "Title Slide", master = "Office Theme") | ||
plot_layout_properties(x = x, layout = "Title Slide") # no master needed if layout name unique | ||
plot_layout_properties(x = x, layout = 1) # use layout index instead of name | ||
|
||
# plot current slide's layout (default if no layout is passed) | ||
x <- read_pptx() | ||
x <- add_slide(x, "Title Slide") | ||
plot_layout_properties(x) | ||
|
||
# change appearance: what to show, font size, legend etc. | ||
plot_layout_properties(x, layout = "Two Content", title = FALSE, type = FALSE, id = FALSE) | ||
plot_layout_properties(x, layout = 4, cex = c(labels = .8, id = .7, type = .7)) | ||
plot_layout_properties(x, 1, legend = TRUE) | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file modified
BIN
-270 Bytes
(98%)
tests/testthat/_snaps/pptx-info/plot-content-order-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-300 Bytes
(97%)
tests/testthat/_snaps/pptx-info/plot-content-order-labels-only.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.3 KB
tests/testthat/_snaps/pptx-info/plot-titleslide-layout-default-with-legend.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-301 Bytes
(97%)
tests/testthat/_snaps/pptx-info/plot-titleslide-layout-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-308 Bytes
(96%)
tests/testthat/_snaps/pptx-info/plot-titleslide-layout-labels-only.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
Oops, something went wrong.