Creating Binary Plot of Gold with Closing Price & Gold Shares on daily basis


## Warning in plot.window(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "colorize" is not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in box(...): "colorize" is not a graphical parameter
## Warning in title(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colorize" is not a
## graphical parameter
## Warning in title(sub = sub.caption, ...): "colorize" is not a graphical
## parameter

## Warning in plot.window(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "colorize" is not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in box(...): "colorize" is not a graphical parameter
## Warning in title(...): "colorize" is not a graphical parameter
## Warning in title(sub = sub.caption, ...): "colorize" is not a graphical
## parameter

## Warning in plot.window(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "colorize" is not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in box(...): "colorize" is not a graphical parameter
## Warning in title(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colorize" is not a
## graphical parameter
## Warning in title(sub = sub.caption, ...): "colorize" is not a graphical
## parameter

## Warning in plot.window(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "colorize" is not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in box(...): "colorize" is not a graphical parameter
## Warning in title(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colorize" is not a
## graphical parameter
## Warning in title(sub = sub.caption, ...): "colorize" is not a graphical
## parameter

## Warning in plot.window(...): "add" is not a graphical parameter
## Warning in plot.window(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "add" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "colorize" is not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "add" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "add" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in box(...): "add" is not a graphical parameter
## Warning in box(...): "colorize" is not a graphical parameter
## Warning in title(...): "add" is not a graphical parameter
## Warning in title(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "add" is not a graphical
## parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colorize" is not a
## graphical parameter
## Warning in title(sub = sub.caption, ...): "add" is not a graphical parameter
## Warning in title(sub = sub.caption, ...): "colorize" is not a graphical
## parameter

## Warning in plot.window(...): "add" is not a graphical parameter
## Warning in plot.window(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "add" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "colorize" is not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "add" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "add" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in box(...): "add" is not a graphical parameter
## Warning in box(...): "colorize" is not a graphical parameter
## Warning in title(...): "add" is not a graphical parameter
## Warning in title(...): "colorize" is not a graphical parameter
## Warning in title(sub = sub.caption, ...): "add" is not a graphical parameter
## Warning in title(sub = sub.caption, ...): "colorize" is not a graphical
## parameter

## Warning in plot.window(...): "add" is not a graphical parameter
## Warning in plot.window(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "add" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "colorize" is not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "add" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "add" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in box(...): "add" is not a graphical parameter
## Warning in box(...): "colorize" is not a graphical parameter
## Warning in title(...): "add" is not a graphical parameter
## Warning in title(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "add" is not a graphical
## parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colorize" is not a
## graphical parameter
## Warning in title(sub = sub.caption, ...): "add" is not a graphical parameter
## Warning in title(sub = sub.caption, ...): "colorize" is not a graphical
## parameter

## Warning in plot.window(...): "add" is not a graphical parameter
## Warning in plot.window(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "add" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "colorize" is not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "add" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "add" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in box(...): "add" is not a graphical parameter
## Warning in box(...): "colorize" is not a graphical parameter
## Warning in title(...): "add" is not a graphical parameter
## Warning in title(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "add" is not a graphical
## parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colorize" is not a
## graphical parameter
## Warning in title(sub = sub.caption, ...): "add" is not a graphical parameter
## Warning in title(sub = sub.caption, ...): "colorize" is not a graphical
## parameter

## Warning in plot.window(...): "add" is not a graphical parameter
## Warning in plot.window(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "add" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "colorize" is not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "add" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "add" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in box(...): "add" is not a graphical parameter
## Warning in box(...): "colorize" is not a graphical parameter
## Warning in title(...): "add" is not a graphical parameter
## Warning in title(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "add" is not a graphical
## parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colorize" is not a
## graphical parameter
## Warning in title(sub = sub.caption, ...): "add" is not a graphical parameter
## Warning in title(sub = sub.caption, ...): "colorize" is not a graphical
## parameter

## Warning in plot.window(...): "add" is not a graphical parameter
## Warning in plot.window(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "add" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "colorize" is not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "add" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "add" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in box(...): "add" is not a graphical parameter
## Warning in box(...): "colorize" is not a graphical parameter
## Warning in title(...): "add" is not a graphical parameter
## Warning in title(...): "colorize" is not a graphical parameter
## Warning in title(sub = sub.caption, ...): "add" is not a graphical parameter
## Warning in title(sub = sub.caption, ...): "colorize" is not a graphical
## parameter

## Warning in plot.window(...): "add" is not a graphical parameter
## Warning in plot.window(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "add" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "colorize" is not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "add" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "add" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in box(...): "add" is not a graphical parameter
## Warning in box(...): "colorize" is not a graphical parameter
## Warning in title(...): "add" is not a graphical parameter
## Warning in title(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "add" is not a graphical
## parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colorize" is not a
## graphical parameter
## Warning in title(sub = sub.caption, ...): "add" is not a graphical parameter
## Warning in title(sub = sub.caption, ...): "colorize" is not a graphical
## parameter

## Warning in plot.window(...): "add" is not a graphical parameter
## Warning in plot.window(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "add" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "colorize" is not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "add" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "add" is not a
## graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colorize" is not a
## graphical parameter
## Warning in box(...): "add" is not a graphical parameter
## Warning in box(...): "colorize" is not a graphical parameter
## Warning in title(...): "add" is not a graphical parameter
## Warning in title(...): "colorize" is not a graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "add" is not a graphical
## parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colorize" is not a
## graphical parameter
## Warning in title(sub = sub.caption, ...): "add" is not a graphical parameter
## Warning in title(sub = sub.caption, ...): "colorize" is not a graphical
## parameter
## Warning in sqrt(crit * p * (1 - hh)/hh): NaNs produced
## Warning in sqrt(crit * p * (1 - hh)/hh): NaNs produced

Note that the echo = FALSE
parameter was added to the code chunk to prevent printing of the R code that generated the plot.