Tagged: routine Toggle Comment Threads | Keyboard Shortcuts

  • ifort 02:55 on 01/24/2013 Permalink | Reply
    Tags: , , routine, , zoo   

    Plot zoo Objects with ggplot2 

    1. plot zoo objects with ggplot2;
    2. reference: http://stackoverflow.com/questions/3321489/r-ggplot-plotting-irregular-time-series/3321532#3321532
    qplot.zoo <- function(x) {
    if(all(class(x) != "zoo")) stop("x must be a zoo object")
    x.df <- data.frame(Date=index(x), Value=as.numeric(coredata(x)))
    ggplot(x.df, aes(x=Date, y=Value)) + geom_line()+xlab("Date")+ylab(colnames(x))
    }

    Example: US Civilian Participation Rate
    plot_zoom_png

     
  • ifort 23:59 on 12/03/2012 Permalink | Reply
    Tags: , routine   

    ERSET – reset IMSL errors actions 

    Change the default printing or stopping actions when errors of a particular error severity level occur.

    Required Arguments

    IERSVR — Error severity level indicator.   (Input)
    If IERSVR = 0, actions are set for levels 1 to 5. If IERSVR is 1 to 5, actions are set for errors of the specified severity level.

    IPACT — Printing action.   (Input)

     IPACT                    Action

    -1                Do not change current setting(s).

    0                Do not print.

    1                Print.

    2                Restore the default setting(s).

    ISACT — Stopping action.   (Input)

    ISACT                    Action

    -1                Do not change current setting(s).

    0                Do not stop.

    1                Stop.

    2                Restore the default setting(s).

    FORTRAN 90 Interface

    Generic:                              CALL ERSET  (IERSVR, IPACT, ISACT)

    Specific:                             The specific interface name is ERSET.

    FORTRAN 77 Interface

    Single:                                CALL ERSET (IERSVR, IPACT, ISACT)


    Visual Numerics, Inc.
    Visual Numerics – Developers of IMSL and PV-WAVE
    http://www.vni.com/
    PHONE: 713.784.3131
    FAX:713.781.9260

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel