ramnathv/rCharts — pull request #370 by sebkopf (2014-03-07 02:14:31+00:00)
Title: method for control over second y axis on Nvd3 lineWithFocusCharts

Thank you for the fantastic rCharts package!

This is an implementation of styling controls over the second yAxis (yAxis2) in the Nvd3 (nChart) of type "lineWithFocusCharts", which allows changing, for example, the tick labels format on the second yAxis. I implemented it the same way you implemented xAxis2 (yAxis2 gets same parameters as yAxis if not specified) and have a code example below:

```coffee
data <- data.frame(x = 1:100, y = round(runif(100, 0, 1), 2))
n1 <- nPlot(y ~ x, data = data, type = 'lineWithFocusChart')
n1$yAxis(tickFormat = "#! function(y) { return d3.format('01%')(y) } !#")
n1 # same y2 axis tick labels as y1 axis (percentage)

n1$y2Axis(tickFormat = "#! function(y) { } !#")
n1 # no y2 axis tick labels
```
I'm relatively new to GitHub and this is my first contribution to someone else's project, please forgive if I'm missing some specific conventions or etiquette about forking/pull requests.

Thank you very much again for a terrific R package.
Sebastian