Skip to content

Commit

Permalink
presubmission changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kloivenn committed Jan 17, 2020
1 parent a03cfa9 commit 8f5c97a
Show file tree
Hide file tree
Showing 10 changed files with 678 additions and 423 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: rlc
Type: Package
Title: Create Interactive Linked Charts with Minimal Code
Version: 0.2.0
Date: 2019-10-11
Date: 2020-01-17
Authors@R: c(
person("Svetlana", "Ovchinnikova", role = c("aut", "cre"), email = "[email protected]"),
person("Simon", "Anders", role = c("aut"), email = "[email protected]")
Expand Down
9 changes: 8 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# rlc 0.1.1
# rlc 0.2.0

* It is possible now to create server apps that can be accessed by multiple users simultaneously. To this end, one should use arguments
`sessionVars`, `beforeLoad` and `afterLoad` of the `openPage` functions. `sessionVars` defines local variables with their default values
for each client, `beforeLoad` and `afterLoad` are callback functions that are called once for each new web page. Other than that, there are
no differences between creating an `rlc` app locally or on a server.

* `rlc` has been restructured so that the entire app is now stored inside a single `R6` object of class `LCApp` (see man pages for more details).

* Property `axesTitlePos` added for all the charts that have axes. This property allows to place axis labels above or below the x-axis
(to the left or to the right from the y-axis) and at the end, in the middle or next to the start of the axis.
Expand Down
12 changes: 7 additions & 5 deletions R/lc.R
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,8 @@ removeLayer <- function(chartId, layerId) {
#' setProperties(dat(symbolValue = iris$Species, y = iris$Petal.Length), chartId = "irisScatter")
#' updateCharts("irisScatter")
#'
#' lc_line(dat(x = iris$Sepal.Length, y = iris$Petal.Length), chartId = "irisScatter", layerId = "line")
#' lc_line(dat(x = iris$Sepal.Length, y = iris$Petal.Length), chartId = "irisScatter",
#' layerId = "line")
#' setProperties(dat(colour = "red"), chartId = "irisScatter", layerId = "line")
#' updateCharts("irisScatter")}
#'
Expand Down Expand Up @@ -1690,7 +1691,7 @@ closePage <- function() {
#' \item \code{axisTitleX, axisTitleY} - axes titles.
#' \item \code{axisTitlePosX, axisTitlePosY} - position of axes titles. For each axis one can specify title position
#' across or along the corresponding axis. Possible options are \code{"up"} (for title inside the plotting area)
#' or \code{"down"} (outside the plottting area, under the axis), and
#' or \code{"down"} (outside the plotting area, under the axis), and
#' \code{"start"}, \code{"middle"}, \code{"end"}. This property must be a string with one or two of the abovementioned options
#' (e.g. \code{"middle down"}, \code{"start"}, etc.).
#' \item \code{ticksRotateX, ticksRotateY} - angle by which to rotate ticks (in degrees). Must be between
Expand Down Expand Up @@ -1837,7 +1838,7 @@ lc_beeswarm <- function(data = list(), place = NULL, ..., chartId = NULL, layerI
#' \item \code{axisTitleX, axisTitleY} - axes titles.
#' \item \code{axisTitlePosX, axisTitlePosY} - position of axes titles. For each axis one can specify title position
#' across or along the corresponding axis. Possible options are \code{"up"} (for title inside the plotting area)
#' or \code{"down"} (outside the plottting area, under the axis), and
#' or \code{"down"} (outside the plotting area, under the axis), and
#' \code{"start"}, \code{"middle"}, \code{"end"}. This property must be a string with one or two of the abovementioned options
#' (e.g. \code{"middle down"}, \code{"start"}, etc.).
#' \item \code{ticksRotateX, ticksRotateY} - angle by which to rotate ticks (in degrees). Must be between
Expand Down Expand Up @@ -1897,7 +1898,8 @@ lc_beeswarm <- function(data = list(), place = NULL, ..., chartId = NULL, layerI
#' x = x,
#' colour = "#555555"), chartId = "ribbonTest")
#' lc_scatter(dat(x = x, y = y), size = 2, chartId = "ribbonTest", addLayer = TRUE)
#' lc_abLine(dat(a = fit$coefficients[2], b = fit$coefficients[1]), chartId = "ribbonTest", addLayer = TRUE)
#' lc_abLine(dat(a = fit$coefficients[2], b = fit$coefficients[1]),
#' chartId = "ribbonTest", addLayer = TRUE)
#'
#' lc_hLine(dat(h = seq(1, 9, 1), domainX = c(0, 10), domainY = c(0, 10)), chartId = "grid")
#' lc_vLine(dat(v = seq(1, 9, 1)), chartId = "grid", addLayer = TRUE)}
Expand Down Expand Up @@ -1993,7 +1995,7 @@ lc_ribbon <- function(data = list(), place = NULL, ..., chartId = NULL, layerId
#' \item \code{axisTitleX, axisTitleY} - axes titles.
#' \item \code{axisTitlePosX, axisTitlePosY} - position of axes titles. For each axis one can specify title position
#' across or along the corresponding axis. Possible options are \code{"up"} (for title inside the plotting area)
#' or \code{"down"} (outside the plottting area, under the axis), and
#' or \code{"down"} (outside the plotting area, under the axis), and
#' \code{"start"}, \code{"middle"}, \code{"end"}. This property must be a string with one or two of the abovementioned options
#' (e.g. \code{"middle down"}, \code{"start"}, etc.).
#' \item \code{ticksRotateX, ticksRotateY} - angle by which to rotate ticks (in degrees). Must be between
Expand Down
Loading

0 comments on commit 8f5c97a

Please sign in to comment.