Skip to contents

Get information about a particular slide layout into a data.frame.

Usage

layout_properties(x, layout = NULL, master = NULL)

Arguments

x

an rpptx object

layout

slide layout name to use

master

master layout name where layout is located

See also

Other functions for reading presentation informations: annotate_base(), color_scheme(), doc_properties(), layout_summary(), length.rpptx(), plot_layout_properties(), slide_size(), slide_summary()

Examples

x <- read_pptx()
layout_properties ( x = x, layout = "Title Slide", master = "Office Theme" )
#>     master_name        name     type id                   ph_label
#> 9  Office Theme Title Slide       dt  4         Date Placeholder 3
#> 17 Office Theme Title Slide      ftr  5       Footer Placeholder 4
#> 27 Office Theme Title Slide   sldNum  6 Slide Number Placeholder 5
#> 35 Office Theme Title Slide ctrTitle  2                    Title 1
#> 36 Office Theme Title Slide subTitle  3                 Subtitle 2
#>                                             ph     offx     offy       cx
#> 9         <p:ph type="dt" sz="half" idx="10"/> 0.500000 6.951389 2.333333
#> 17    <p:ph type="ftr" sz="quarter" idx="11"/> 3.416667 6.951389 3.166667
#> 27 <p:ph type="sldNum" sz="quarter" idx="12"/> 7.166667 6.951389 2.333333
#> 35                     <p:ph type="ctrTitle"/> 0.750000 2.329861 8.500000
#> 36             <p:ph type="subTitle" idx="1"/> 1.500000 4.250000 7.000000
#>           cy rotation                                 fld_id          fld_type
#> 9  0.3993056       NA {E6744CE3-0875-4B69-89C0-6F72D8139561} datetimeFigureOut
#> 17 0.3993056       NA                                   <NA>              <NA>
#> 27 0.3993056       NA {8DADB20D-508E-4C6D-A9E4-257D5607B0F6}          slidenum
#> 35 1.6076389       NA                                   <NA>              <NA>
#> 36 1.9166667       NA                                   <NA>              <NA>
layout_properties ( x = x, master = "Office Theme" )
#>     master_name              name     type id                   ph_label
#> 1  Office Theme    Section Header     body  3         Text Placeholder 2
#> 2  Office Theme        Comparison     body  5         Text Placeholder 4
#> 3  Office Theme        Comparison     body  6      Content Placeholder 5
#> 4  Office Theme        Comparison     body  4      Content Placeholder 3
#> 5  Office Theme Title and Content     body  3      Content Placeholder 2
#> 6  Office Theme       Two Content     body  3      Content Placeholder 2
#> 7  Office Theme       Two Content     body  4      Content Placeholder 3
#> 8  Office Theme        Comparison     body  3         Text Placeholder 2
#> 9  Office Theme       Title Slide       dt  4         Date Placeholder 3
#> 10 Office Theme Title and Content       dt  4         Date Placeholder 3
#> 11 Office Theme        Title Only       dt  3         Date Placeholder 2
#> 12 Office Theme       Two Content       dt  5         Date Placeholder 4
#> 13 Office Theme    Section Header       dt  4         Date Placeholder 3
#> 14 Office Theme        Comparison       dt  7         Date Placeholder 6
#> 15 Office Theme             Blank       dt  2         Date Placeholder 1
#> 16 Office Theme       Two Content      ftr  6       Footer Placeholder 5
#> 17 Office Theme       Title Slide      ftr  5       Footer Placeholder 4
#> 18 Office Theme        Comparison      ftr  8       Footer Placeholder 7
#> 19 Office Theme             Blank      ftr  3       Footer Placeholder 2
#> 20 Office Theme        Title Only      ftr  4       Footer Placeholder 3
#> 21 Office Theme Title and Content      ftr  5       Footer Placeholder 4
#> 22 Office Theme    Section Header      ftr  5       Footer Placeholder 4
#> 23 Office Theme        Comparison   sldNum  9 Slide Number Placeholder 8
#> 24 Office Theme        Title Only   sldNum  5 Slide Number Placeholder 4
#> 25 Office Theme Title and Content   sldNum  6 Slide Number Placeholder 5
#> 26 Office Theme    Section Header   sldNum  6 Slide Number Placeholder 5
#> 27 Office Theme       Title Slide   sldNum  6 Slide Number Placeholder 5
#> 28 Office Theme             Blank   sldNum  4 Slide Number Placeholder 3
#> 29 Office Theme       Two Content   sldNum  7 Slide Number Placeholder 6
#> 30 Office Theme        Title Only    title  2                    Title 1
#> 31 Office Theme Title and Content    title  2                    Title 1
#> 32 Office Theme       Two Content    title  2                    Title 1
#> 33 Office Theme    Section Header    title  2                    Title 1
#> 34 Office Theme        Comparison    title  2                    Title 1
#> 35 Office Theme       Title Slide ctrTitle  2                    Title 1
#> 36 Office Theme       Title Slide subTitle  3                 Subtitle 2
#>                                             ph      offx      offy       cx
#> 1                  <p:ph type="body" idx="1"/> 0.7899311 3.1788200 8.500000
#> 2     <p:ph type="body" sz="quarter" idx="3"/> 5.0798611 1.6788200 4.420139
#> 3                 <p:ph sz="quarter" idx="4"/> 5.0798611 2.3784722 4.420139
#> 4                    <p:ph sz="half" idx="2"/> 0.5000000 2.3784722 4.418403
#> 5                              <p:ph idx="1"/> 0.5000000 1.7500000 9.000000
#> 6                    <p:ph sz="half" idx="1"/> 0.5000000 1.7500000 4.416667
#> 7                    <p:ph sz="half" idx="2"/> 5.0833333 1.7500000 4.416667
#> 8                  <p:ph type="body" idx="1"/> 0.5000000 1.6788200 4.418403
#> 9         <p:ph type="dt" sz="half" idx="10"/> 0.5000000 6.9513889 2.333333
#> 10        <p:ph type="dt" sz="half" idx="10"/> 0.5000000 6.9513889 2.333333
#> 11        <p:ph type="dt" sz="half" idx="10"/> 0.5000000 6.9513889 2.333333
#> 12        <p:ph type="dt" sz="half" idx="10"/> 0.5000000 6.9513889 2.333333
#> 13        <p:ph type="dt" sz="half" idx="10"/> 0.5000000 6.9513889 2.333333
#> 14        <p:ph type="dt" sz="half" idx="10"/> 0.5000000 6.9513889 2.333333
#> 15        <p:ph type="dt" sz="half" idx="10"/> 0.5000000 6.9513889 2.333333
#> 16    <p:ph type="ftr" sz="quarter" idx="11"/> 3.4166667 6.9513889 3.166667
#> 17    <p:ph type="ftr" sz="quarter" idx="11"/> 3.4166667 6.9513889 3.166667
#> 18    <p:ph type="ftr" sz="quarter" idx="11"/> 3.4166667 6.9513889 3.166667
#> 19    <p:ph type="ftr" sz="quarter" idx="11"/> 3.4166667 6.9513889 3.166667
#> 20    <p:ph type="ftr" sz="quarter" idx="11"/> 3.4166667 6.9513889 3.166667
#> 21    <p:ph type="ftr" sz="quarter" idx="11"/> 3.4166667 6.9513889 3.166667
#> 22    <p:ph type="ftr" sz="quarter" idx="11"/> 3.4166667 6.9513889 3.166667
#> 23 <p:ph type="sldNum" sz="quarter" idx="12"/> 7.1666667 6.9513889 2.333333
#> 24 <p:ph type="sldNum" sz="quarter" idx="12"/> 7.1666667 6.9513889 2.333333
#> 25 <p:ph type="sldNum" sz="quarter" idx="12"/> 7.1666667 6.9513889 2.333333
#> 26 <p:ph type="sldNum" sz="quarter" idx="12"/> 7.1666667 6.9513889 2.333333
#> 27 <p:ph type="sldNum" sz="quarter" idx="12"/> 7.1666667 6.9513889 2.333333
#> 28 <p:ph type="sldNum" sz="quarter" idx="12"/> 7.1666667 6.9513889 2.333333
#> 29 <p:ph type="sldNum" sz="quarter" idx="12"/> 7.1666667 6.9513889 2.333333
#> 30                        <p:ph type="title"/> 0.5000000 0.3003478 9.000000
#> 31                        <p:ph type="title"/> 0.5000000 0.3003478 9.000000
#> 32                        <p:ph type="title"/> 0.5000000 0.3003478 9.000000
#> 33                        <p:ph type="title"/> 0.7899311 4.8194444 8.500000
#> 34                        <p:ph type="title"/> 0.5000000 0.3003478 9.000000
#> 35                     <p:ph type="ctrTitle"/> 0.7500000 2.3298611 8.500000
#> 36             <p:ph type="subTitle" idx="1"/> 1.5000000 4.2500000 7.000000
#>           cy rotation                                 fld_id          fld_type
#> 1  1.6406245       NA                                   <NA>              <NA>
#> 2  0.6996522       NA                                   <NA>              <NA>
#> 3  4.3211811       NA                                   <NA>              <NA>
#> 4  4.3211811       NA                                   <NA>              <NA>
#> 5  4.9496533       NA                                   <NA>              <NA>
#> 6  4.9496533       NA                                   <NA>              <NA>
#> 7  4.9496533       NA                                   <NA>              <NA>
#> 8  0.6996522       NA                                   <NA>              <NA>
#> 9  0.3993056       NA {E6744CE3-0875-4B69-89C0-6F72D8139561} datetimeFigureOut
#> 10 0.3993056       NA {E6744CE3-0875-4B69-89C0-6F72D8139561} datetimeFigureOut
#> 11 0.3993056       NA {E6744CE3-0875-4B69-89C0-6F72D8139561} datetimeFigureOut
#> 12 0.3993056       NA {E6744CE3-0875-4B69-89C0-6F72D8139561} datetimeFigureOut
#> 13 0.3993056       NA {E6744CE3-0875-4B69-89C0-6F72D8139561} datetimeFigureOut
#> 14 0.3993056       NA {E6744CE3-0875-4B69-89C0-6F72D8139561} datetimeFigureOut
#> 15 0.3993056       NA {E6744CE3-0875-4B69-89C0-6F72D8139561} datetimeFigureOut
#> 16 0.3993056       NA                                   <NA>              <NA>
#> 17 0.3993056       NA                                   <NA>              <NA>
#> 18 0.3993056       NA                                   <NA>              <NA>
#> 19 0.3993056       NA                                   <NA>              <NA>
#> 20 0.3993056       NA                                   <NA>              <NA>
#> 21 0.3993056       NA                                   <NA>              <NA>
#> 22 0.3993056       NA                                   <NA>              <NA>
#> 23 0.3993056       NA {8DADB20D-508E-4C6D-A9E4-257D5607B0F6}          slidenum
#> 24 0.3993056       NA {8DADB20D-508E-4C6D-A9E4-257D5607B0F6}          slidenum
#> 25 0.3993056       NA {8DADB20D-508E-4C6D-A9E4-257D5607B0F6}          slidenum
#> 26 0.3993056       NA {8DADB20D-508E-4C6D-A9E4-257D5607B0F6}          slidenum
#> 27 0.3993056       NA {8DADB20D-508E-4C6D-A9E4-257D5607B0F6}          slidenum
#> 28 0.3993056       NA {8DADB20D-508E-4C6D-A9E4-257D5607B0F6}          slidenum
#> 29 0.3993056       NA {8DADB20D-508E-4C6D-A9E4-257D5607B0F6}          slidenum
#> 30 1.2500000       NA                                   <NA>              <NA>
#> 31 1.2500000       NA                                   <NA>              <NA>
#> 32 1.2500000       NA                                   <NA>              <NA>
#> 33 1.4895833       NA                                   <NA>              <NA>
#> 34 1.2500000       NA                                   <NA>              <NA>
#> 35 1.6076389       NA                                   <NA>              <NA>
#> 36 1.9166667       NA                                   <NA>              <NA>
layout_properties ( x = x, layout = "Two Content" )
#>     master_name        name   type id                   ph_label
#> 6  Office Theme Two Content   body  3      Content Placeholder 2
#> 7  Office Theme Two Content   body  4      Content Placeholder 3
#> 12 Office Theme Two Content     dt  5         Date Placeholder 4
#> 16 Office Theme Two Content    ftr  6       Footer Placeholder 5
#> 29 Office Theme Two Content sldNum  7 Slide Number Placeholder 6
#> 32 Office Theme Two Content  title  2                    Title 1
#>                                             ph     offx      offy       cx
#> 6                    <p:ph sz="half" idx="1"/> 0.500000 1.7500000 4.416667
#> 7                    <p:ph sz="half" idx="2"/> 5.083333 1.7500000 4.416667
#> 12        <p:ph type="dt" sz="half" idx="10"/> 0.500000 6.9513889 2.333333
#> 16    <p:ph type="ftr" sz="quarter" idx="11"/> 3.416667 6.9513889 3.166667
#> 29 <p:ph type="sldNum" sz="quarter" idx="12"/> 7.166667 6.9513889 2.333333
#> 32                        <p:ph type="title"/> 0.500000 0.3003478 9.000000
#>           cy rotation                                 fld_id          fld_type
#> 6  4.9496533       NA                                   <NA>              <NA>
#> 7  4.9496533       NA                                   <NA>              <NA>
#> 12 0.3993056       NA {E6744CE3-0875-4B69-89C0-6F72D8139561} datetimeFigureOut
#> 16 0.3993056       NA                                   <NA>              <NA>
#> 29 0.3993056       NA {8DADB20D-508E-4C6D-A9E4-257D5607B0F6}          slidenum
#> 32 1.2500000       NA                                   <NA>              <NA>
layout_properties ( x = x )
#>     master_name              name     type id                   ph_label
#> 1  Office Theme    Section Header     body  3         Text Placeholder 2
#> 2  Office Theme        Comparison     body  5         Text Placeholder 4
#> 3  Office Theme        Comparison     body  6      Content Placeholder 5
#> 4  Office Theme        Comparison     body  4      Content Placeholder 3
#> 5  Office Theme Title and Content     body  3      Content Placeholder 2
#> 6  Office Theme       Two Content     body  3      Content Placeholder 2
#> 7  Office Theme       Two Content     body  4      Content Placeholder 3
#> 8  Office Theme        Comparison     body  3         Text Placeholder 2
#> 9  Office Theme       Title Slide       dt  4         Date Placeholder 3
#> 10 Office Theme Title and Content       dt  4         Date Placeholder 3
#> 11 Office Theme        Title Only       dt  3         Date Placeholder 2
#> 12 Office Theme       Two Content       dt  5         Date Placeholder 4
#> 13 Office Theme    Section Header       dt  4         Date Placeholder 3
#> 14 Office Theme        Comparison       dt  7         Date Placeholder 6
#> 15 Office Theme             Blank       dt  2         Date Placeholder 1
#> 16 Office Theme       Two Content      ftr  6       Footer Placeholder 5
#> 17 Office Theme       Title Slide      ftr  5       Footer Placeholder 4
#> 18 Office Theme        Comparison      ftr  8       Footer Placeholder 7
#> 19 Office Theme             Blank      ftr  3       Footer Placeholder 2
#> 20 Office Theme        Title Only      ftr  4       Footer Placeholder 3
#> 21 Office Theme Title and Content      ftr  5       Footer Placeholder 4
#> 22 Office Theme    Section Header      ftr  5       Footer Placeholder 4
#> 23 Office Theme        Comparison   sldNum  9 Slide Number Placeholder 8
#> 24 Office Theme        Title Only   sldNum  5 Slide Number Placeholder 4
#> 25 Office Theme Title and Content   sldNum  6 Slide Number Placeholder 5
#> 26 Office Theme    Section Header   sldNum  6 Slide Number Placeholder 5
#> 27 Office Theme       Title Slide   sldNum  6 Slide Number Placeholder 5
#> 28 Office Theme             Blank   sldNum  4 Slide Number Placeholder 3
#> 29 Office Theme       Two Content   sldNum  7 Slide Number Placeholder 6
#> 30 Office Theme        Title Only    title  2                    Title 1
#> 31 Office Theme Title and Content    title  2                    Title 1
#> 32 Office Theme       Two Content    title  2                    Title 1
#> 33 Office Theme    Section Header    title  2                    Title 1
#> 34 Office Theme        Comparison    title  2                    Title 1
#> 35 Office Theme       Title Slide ctrTitle  2                    Title 1
#> 36 Office Theme       Title Slide subTitle  3                 Subtitle 2
#>                                             ph      offx      offy       cx
#> 1                  <p:ph type="body" idx="1"/> 0.7899311 3.1788200 8.500000
#> 2     <p:ph type="body" sz="quarter" idx="3"/> 5.0798611 1.6788200 4.420139
#> 3                 <p:ph sz="quarter" idx="4"/> 5.0798611 2.3784722 4.420139
#> 4                    <p:ph sz="half" idx="2"/> 0.5000000 2.3784722 4.418403
#> 5                              <p:ph idx="1"/> 0.5000000 1.7500000 9.000000
#> 6                    <p:ph sz="half" idx="1"/> 0.5000000 1.7500000 4.416667
#> 7                    <p:ph sz="half" idx="2"/> 5.0833333 1.7500000 4.416667
#> 8                  <p:ph type="body" idx="1"/> 0.5000000 1.6788200 4.418403
#> 9         <p:ph type="dt" sz="half" idx="10"/> 0.5000000 6.9513889 2.333333
#> 10        <p:ph type="dt" sz="half" idx="10"/> 0.5000000 6.9513889 2.333333
#> 11        <p:ph type="dt" sz="half" idx="10"/> 0.5000000 6.9513889 2.333333
#> 12        <p:ph type="dt" sz="half" idx="10"/> 0.5000000 6.9513889 2.333333
#> 13        <p:ph type="dt" sz="half" idx="10"/> 0.5000000 6.9513889 2.333333
#> 14        <p:ph type="dt" sz="half" idx="10"/> 0.5000000 6.9513889 2.333333
#> 15        <p:ph type="dt" sz="half" idx="10"/> 0.5000000 6.9513889 2.333333
#> 16    <p:ph type="ftr" sz="quarter" idx="11"/> 3.4166667 6.9513889 3.166667
#> 17    <p:ph type="ftr" sz="quarter" idx="11"/> 3.4166667 6.9513889 3.166667
#> 18    <p:ph type="ftr" sz="quarter" idx="11"/> 3.4166667 6.9513889 3.166667
#> 19    <p:ph type="ftr" sz="quarter" idx="11"/> 3.4166667 6.9513889 3.166667
#> 20    <p:ph type="ftr" sz="quarter" idx="11"/> 3.4166667 6.9513889 3.166667
#> 21    <p:ph type="ftr" sz="quarter" idx="11"/> 3.4166667 6.9513889 3.166667
#> 22    <p:ph type="ftr" sz="quarter" idx="11"/> 3.4166667 6.9513889 3.166667
#> 23 <p:ph type="sldNum" sz="quarter" idx="12"/> 7.1666667 6.9513889 2.333333
#> 24 <p:ph type="sldNum" sz="quarter" idx="12"/> 7.1666667 6.9513889 2.333333
#> 25 <p:ph type="sldNum" sz="quarter" idx="12"/> 7.1666667 6.9513889 2.333333
#> 26 <p:ph type="sldNum" sz="quarter" idx="12"/> 7.1666667 6.9513889 2.333333
#> 27 <p:ph type="sldNum" sz="quarter" idx="12"/> 7.1666667 6.9513889 2.333333
#> 28 <p:ph type="sldNum" sz="quarter" idx="12"/> 7.1666667 6.9513889 2.333333
#> 29 <p:ph type="sldNum" sz="quarter" idx="12"/> 7.1666667 6.9513889 2.333333
#> 30                        <p:ph type="title"/> 0.5000000 0.3003478 9.000000
#> 31                        <p:ph type="title"/> 0.5000000 0.3003478 9.000000
#> 32                        <p:ph type="title"/> 0.5000000 0.3003478 9.000000
#> 33                        <p:ph type="title"/> 0.7899311 4.8194444 8.500000
#> 34                        <p:ph type="title"/> 0.5000000 0.3003478 9.000000
#> 35                     <p:ph type="ctrTitle"/> 0.7500000 2.3298611 8.500000
#> 36             <p:ph type="subTitle" idx="1"/> 1.5000000 4.2500000 7.000000
#>           cy rotation                                 fld_id          fld_type
#> 1  1.6406245       NA                                   <NA>              <NA>
#> 2  0.6996522       NA                                   <NA>              <NA>
#> 3  4.3211811       NA                                   <NA>              <NA>
#> 4  4.3211811       NA                                   <NA>              <NA>
#> 5  4.9496533       NA                                   <NA>              <NA>
#> 6  4.9496533       NA                                   <NA>              <NA>
#> 7  4.9496533       NA                                   <NA>              <NA>
#> 8  0.6996522       NA                                   <NA>              <NA>
#> 9  0.3993056       NA {E6744CE3-0875-4B69-89C0-6F72D8139561} datetimeFigureOut
#> 10 0.3993056       NA {E6744CE3-0875-4B69-89C0-6F72D8139561} datetimeFigureOut
#> 11 0.3993056       NA {E6744CE3-0875-4B69-89C0-6F72D8139561} datetimeFigureOut
#> 12 0.3993056       NA {E6744CE3-0875-4B69-89C0-6F72D8139561} datetimeFigureOut
#> 13 0.3993056       NA {E6744CE3-0875-4B69-89C0-6F72D8139561} datetimeFigureOut
#> 14 0.3993056       NA {E6744CE3-0875-4B69-89C0-6F72D8139561} datetimeFigureOut
#> 15 0.3993056       NA {E6744CE3-0875-4B69-89C0-6F72D8139561} datetimeFigureOut
#> 16 0.3993056       NA                                   <NA>              <NA>
#> 17 0.3993056       NA                                   <NA>              <NA>
#> 18 0.3993056       NA                                   <NA>              <NA>
#> 19 0.3993056       NA                                   <NA>              <NA>
#> 20 0.3993056       NA                                   <NA>              <NA>
#> 21 0.3993056       NA                                   <NA>              <NA>
#> 22 0.3993056       NA                                   <NA>              <NA>
#> 23 0.3993056       NA {8DADB20D-508E-4C6D-A9E4-257D5607B0F6}          slidenum
#> 24 0.3993056       NA {8DADB20D-508E-4C6D-A9E4-257D5607B0F6}          slidenum
#> 25 0.3993056       NA {8DADB20D-508E-4C6D-A9E4-257D5607B0F6}          slidenum
#> 26 0.3993056       NA {8DADB20D-508E-4C6D-A9E4-257D5607B0F6}          slidenum
#> 27 0.3993056       NA {8DADB20D-508E-4C6D-A9E4-257D5607B0F6}          slidenum
#> 28 0.3993056       NA {8DADB20D-508E-4C6D-A9E4-257D5607B0F6}          slidenum
#> 29 0.3993056       NA {8DADB20D-508E-4C6D-A9E4-257D5607B0F6}          slidenum
#> 30 1.2500000       NA                                   <NA>              <NA>
#> 31 1.2500000       NA                                   <NA>              <NA>
#> 32 1.2500000       NA                                   <NA>              <NA>
#> 33 1.4895833       NA                                   <NA>              <NA>
#> 34 1.2500000       NA                                   <NA>              <NA>
#> 35 1.6076389       NA                                   <NA>              <NA>
#> 36 1.9166667       NA                                   <NA>              <NA>