File: makedots.R

package info (click to toggle)
r-cran-distr 2.9.7%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,344 kB
  • sloc: ansic: 199; sh: 13; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 1,038 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.makedotsLowLevel <- function(dots){
       dots$sub <- dots$xlab <- dots$ylab <- dots$main <- dots$type <- NULL
       dots$xlim <- dots$ylim <- dots$yaxt <- dots$axes <- dots$xaxt <- NULL
       dots$panel.last <- dots$panel.first <- dots$frame.plot <- dots$ann <-NULL
       dots$log <- dots$bg <- dots$asp <- NULL
       # 20240822 added an additional layer of security
       if (length(dots) == 0 ) dots <- NULL
       return(dots)
}
.makedotsL <- function(dots){
    dots <- .makedotsLowLevel(dots)
    dots$pch <- dots$cex <- NULL
    # 20240822 added an additional layer of security
    if (length(dots) == 0 ) dots <- NULL
    dots
}
.makedotsP <- function(dots){
    dots <- .makedotsLowLevel(dots)
    dots$lwd <- dots$lty <- NULL
    # 20240822 added an additional layer of security
    if (length(dots) == 0 ) dots <- NULL
    dots
}
.makedotsPt <- function(dots){
    dots <- dots[names(dots) %in% c("bg", "lwd", "lty")]
    dots$pch <- NULL
    if (length(dots) == 0 ) dots <- NULL
    dots
}