Search notes:

R function: scatter.smooth

X11()


weekdays = c('So', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa')

d <- data.frame(
  weekday = factor(rep(weekdays, 5), weekdays),
  value   = nchar(c(
 '##'                 , # So
 '########'           , # Mo
 '#############'      , # Tu
 '######'             , # We
 '############'       , # Th
 '###############'    , # Fr
 '###'                , # Sa
# ---
 '####'               , # So
 '####'               , # Mo
 '########'           , # Tu
 '#####'              , # We
 '###########'        , # Th
 '#########'          , # Fr
 '#####'              , # Sa
# ---
 '####'               , # So
 '######'             , # Mo
 '############'       , # Tu
 '####'               , # We
 '#############'      , # Th
 '##########'         , # Fr
 '###'                , # Sa
# ---
 '#'                  , # So
 '####'               , # Mo
 '##############'     , # Tu
 '####'               , # We
 '############'       , # Th
 '##############'     , # Fr
 '#######'            , # Sa
# ---
 '###'                , # So
 '######'             , # Mo
 '###########'        , # Tu
 '######'             , # We
 '#############'      , # Th
 '###########'        , # Fr
 '####'                 # Sa
 ))
)

scatter.smooth(d$value ~ d$weekday, col=gray(0.7), bty='n', xaxt='n')
axis(1, at=1:7, labels = levels(d$weekday))

z <- locator(1)
Github repository about-r, path: /functions/scatter.smooth.R

See also

Index to (some) R functions

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758201011, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/scatter_smooth(92): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78