Skip to content

Commit

Permalink
remove bar/line examples in the package, and move them to the doc web…
Browse files Browse the repository at this point in the history
…site
  • Loading branch information
yihui committed Jun 13, 2015
1 parent d19e7e4 commit a8d3686
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
12 changes: 0 additions & 12 deletions R/echart.R
Expand Up @@ -7,20 +7,8 @@
#' @rdname eChart
#' @export
#' @examples library(recharts)
#' ### scatter plot
#' echart(iris, ~ Sepal.Length, ~ Sepal.Width)
#' echart(iris, ~ Sepal.Length, ~ Sepal.Width, series = ~ Species)
#'
#' # bar chart
#' bar_df = data.frame(
#' date = rep(paste("day",1:10), 2),
#' temperature = floor(rnorm(n = 20, mean = 20, sd = 10)),
#' location = rep(c("NY","DC"), each = 10)
#' )
#' echart(bar_df, ~date, ~temperature, ~location)
#'
#' #line chart
#' echart(bar_df, ~date, ~temperature, ~location, type="line")
echart = function(data, ...) {
UseMethod('echart')
}
Expand Down
6 changes: 0 additions & 6 deletions man/eChart.Rd
Expand Up @@ -33,12 +33,6 @@ and customize options later. \code{eChart()} is an alias of \code{echart()}.
}
\examples{
library(recharts)
### scatter plot
echart(iris, ~Sepal.Length, ~Sepal.Width)
echart(iris, ~Sepal.Length, ~Sepal.Width, series = ~Species)
### bar chart

bar_df = data.frame(date = rep(paste("day", 1:10), 2), temperature = floor(rnorm(n = 20,
mean = 20, sd = 10)), location = rep(c("NY", "DC"), each = 10))
echart(bar_df, ~date, ~temperature, ~location)
}

0 comments on commit a8d3686

Please sign in to comment.