@@ -865,6 +865,74 @@ get_dimensions = function(x, n_out, unit.default, page_dim, page_dim_net){
865865# ' argument `type`.
866866# ' @param type Character scalar, default is `NULL`. The type of file to be created.
867867# ' If `NULL`, the default, then the type of file is deduced from the extension.
868+ # ' @param margin Numeric vector, default is `NULL`. Defines the size of the four
869+ # ' plotting margins. If of length 1 or 2, the content is recycled to fit 4 elements.
870+ # ' By default the unit is the line but you can change it with the argument
871+ # ' `margin.unit`.
872+ # ' @param margin.left Numeric scalar, default is `NULL`. The size of the left margin.
873+ # ' By default the unit is the line but you can change it with the argument
874+ # ' `margin.unit`.
875+ # ' @param margin.right Numeric scalar, default is `NULL`. The size of the right margin.
876+ # ' By default the unit is the line but you can change it with the argument
877+ # ' `margin.unit`.
878+ # ' @param margin.top Numeric scalar, default is `NULL`. The size of the top margin.
879+ # ' By default the unit is the line but you can change it with the argument
880+ # ' `margin.unit`.
881+ # ' @param margin.bottom Numeric scalar, default is `NULL`. The size of the bottom margin.
882+ # ' By default the unit is the line but you can change it with the argument
883+ # ' `margin.unit`.
884+ # ' @param margin.unit Character scalar equal to either: i) "line" (default), ii) "inch", iii) "cm".
885+ # ' @param box Can be equal to `NULL` (default), a logical scalar, or a character scalar.
886+ # ' Defines how to draw the box around the plotting region.
887+ # ' If a logical, `TRUE` means that all borders are drawn, and `FALSE` means none.
888+ # ' If a character scalar, it should contain the following letters: "b", "l", "t" and/or "r",
889+ # ' which stand for the bottom, left, top and right border.
890+ # ' @param col.bg An R color, default is `NULL`. The background color of the plot.
891+ # ' @param col.default A vector of R colors, default is `NULL`.
892+ # ' They represent the default colors used for plotting.
893+ # ' @param lwd Numeric scalar, default is `NULL`. The default width of the lines.
894+ # ' @param yaxis.horiz Logical, default is `NULL`. Whether to display the y-axis labels
895+ # ' horizontally.
896+ # ' @param outermargin Numeric vector, default is `NULL`. Defines the size of the four
897+ # ' outer margins. If of length 1 or 2, the content is recycled to fit 4 elements.
898+ # ' By default the unit is the line but you can change it with the argument
899+ # ' `outermargin.unit`.
900+ # ' @param outermargin.left Numeric scalar, default is `NULL`. The size of the left margin.
901+ # ' By default the unit is the line but you can change it with the argument
902+ # ' `margin.unit`.
903+ # ' @param outermargin.right Numeric scalar, default is `NULL`. The size of the right margin.
904+ # ' By default the unit is the line but you can change it with the argument
905+ # ' `margin.unit`.
906+ # ' @param outermargin.top Numeric scalar, default is `NULL`. The size of the top margin.
907+ # ' By default the unit is the line but you can change it with the argument
908+ # ' `margin.unit`.
909+ # ' @param outermargin.bottom Numeric scalar, default is `NULL`. The size of the bottom margin.
910+ # ' By default the unit is the line but you can change it with the argument
911+ # ' `margin.unit`.
912+ # ' @param outermargin.unit Character scalar equal to either: i) "line" (default), ii) "inch", iii) "cm".
913+ # ' @param square_plot Logical, default is `NULL`. Whether the plotting region should fit
914+ # ' a square. If `FALSE` the plotting region is maximal.
915+ # ' @param nrow Integer scalar, default is `NULL`. To display multiple graphs, the number of
916+ # ' rows of the graphical matrix.
917+ # ' @param ncol Integer scalar, default is `NULL`. To display multiple graphs, the number of
918+ # ' columns of the graphical matrix.
919+ # ' @param byrow Logical, default is TRUE. When plotting multiple graphs on a graphical matrix,
920+ # ' whether to plot the graphs by row.
921+ # ' @param title.size Numeric scalar, default is `NULL`. Values greater than 1 increase
922+ # ' the size of the plot titles, values lower than 1 reduce them.
923+ # ' @param title.col An R color, default is `NULL`. The color for the graph titles.
924+ # ' @param title.bold Logical, default is `NULL`. Whether to display the title in bold font.
925+ # ' @param title.italic Logical, default is `NULL`. Whether to display the title in italic font.
926+ # ' @param axis.size Numeric scalar, default is `NULL`. Values greater than 1 increase
927+ # ' the size of the text in the plot axes, values lower than 1 reduce them.
928+ # ' @param axis.col An R color, default is `NULL`. The color for the text in the graph axes.
929+ # ' @param axis.bold Logical, default is `NULL`. Whether to display the axis's text in bold font.
930+ # ' @param axis.italic Logical, default is `NULL`. Whether to display the axis's text in italic font.
931+ # ' @param label.size Numeric scalar, default is `NULL`. Values greater than 1 increase
932+ # ' the size of the plot labels, values lower than 1 reduce them.
933+ # ' @param label.col An R color, default is `NULL`. The color for the graph labels.
934+ # ' @param label.bold Logical, default is `NULL`. Whether to display the labels in bold font.
935+ # ' @param label.italic Logical, default is `NULL`. Whether to display the labels in italic font.
868936# '
869937# ' @details
870938# '
@@ -930,7 +998,7 @@ export_graph_start = function(file, pt = 10, width = 1, height, w2h = 1.75, h2w,
930998 # byt, bg, col
931999 box = NULL , col.bg = NULL , col.default = NULL ,
9321000 # las, lwd
933- ylab .horiz = NULL , lwd = NULL ,
1001+ yaxis .horiz = NULL , lwd = NULL ,
9341002 # oma
9351003 outermargin = NULL ,
9361004 outermargin.left = NULL , outermargin.right = NULL ,
@@ -966,7 +1034,7 @@ export_graph_start = function(file, pt = 10, width = 1, height, w2h = 1.75, h2w,
9661034
9671035 msg_box = " The argument `box` must be either: i) TRUE/FALSE, ii) NULL, iii) a character scalar containing the following letters b, l, t, r (standing for bottom, left, top, right)."
9681036 check_arg(box , " NULL scalar(character, logical)" , .message = msg_box )
969- check_arg(ylab .horiz , square_plot , " NULL logical scalar" )
1037+ check_arg(yaxis .horiz , square_plot , " NULL logical scalar" )
9701038
9711039 check_arg(lwd , " NULL numeric scalar ge{0}" )
9721040
@@ -1154,8 +1222,8 @@ export_graph_start = function(file, pt = 10, width = 1, height, w2h = 1.75, h2w,
11541222 par_prms [[" bty" ]] = bty
11551223 }
11561224
1157- if (! is.null(ylab .horiz )){
1158- par_prms [[" las" ]] = if (ylab .horiz ) 1 else 0
1225+ if (! is.null(yaxis .horiz )){
1226+ par_prms [[" las" ]] = if (yaxis .horiz ) 1 else 0
11591227 }
11601228
11611229 if (! is.null(lwd )){
0 commit comments