diff --git a/R/visConfigure.R b/R/visConfigure.R
index 98d33e7..bb78862 100644
--- a/R/visConfigure.R
+++ b/R/visConfigure.R
@@ -4,7 +4,7 @@
#'
#' @param graph : a visNetwork object
#' @param enabled : Boolean. Default to true. Toggle the configuration interface on or off. This is an optional parameter. If left undefined and any of the other properties of this object are defined, this will be set to true.
-#' @param filter : String, Array, Boolean, Function. Default to true. When a boolean, true gives you all options, false will not show any. If a string is supplied, any combination of the following is allowed: nodes, edges, layout, interaction, manipulation, physics, selection, renderer. Feel free to come up with a fun seperating character. Finally, when supplied an array of strings, any of the previously mentioned fields are accepted.
+#' @param filter : String, Array, Boolean, Function. Default to true. When a boolean, true gives you all options, false will not show any. If a string is supplied, any combination of the following is allowed: nodes, edges, layout, interaction, manipulation, physics, selection, renderer. Feel free to come up with a fun separating character. Finally, when supplied an array of strings, any of the previously mentioned fields are accepted.
#' @param container : DOM element. This allows you to put the configure list in another HTML container than below the network.
#' @param showButton : Boolean. Default to true. Show the generate options button at the bottom of the configurator.
#'
diff --git a/R/visEdges.R b/R/visEdges.R
index c649c1c..bf38562 100644
--- a/R/visEdges.R
+++ b/R/visEdges.R
@@ -39,7 +39,7 @@
#' \item "vadjust, multi, bold, ital, boldital, mono" See \link[visNetwork]{visDocumentation}
#'}
#'
-#' @param arrows : Named list or String. To draw an arrow with default settings a string can be supplied. For example: 'to, from,middle' or 'to;from', any combination with any seperating symbol is fine.
+#' @param arrows : Named list or String. To draw an arrow with default settings a string can be supplied. For example: 'to, from,middle' or 'to;from', any combination with any separating symbol is fine.
#' If you want to control the size of the arrowheads, you can supply an object. See \link[visNetwork]{visDocumentation}
#'
#' @param arrowStrikethrough : Boolean. Default to True. When false, the edge stops at the arrow. This can be useful if you have thick lines and you want the arrow to end in a point. Middle arrows are not affected by this.
diff --git a/R/visExport.R b/R/visExport.R
index 663aa01..94d870a 100644
--- a/R/visExport.R
+++ b/R/visExport.R
@@ -7,7 +7,7 @@
#'@param name : name of imgage, default to "network"
#'@param label : Label on button, default to "Export as png/jpeg/pdf"
#'@param background : background color, default to white (#fff). Work only if network background is transparent.
-#'@param float : button postion, default to "right"
+#'@param float : button position, default to "right"
#'@param style : button css style.
#'@param loadDependencies / Boolean. TRUE by default. Load libraries for export (fileSaver, Blob, canvastoBlob, html2canvas, jsPDF)
#'@param ... : arguments for \link[visNetwork]{addExport}
diff --git a/R/visGetUtils.R b/R/visGetUtils.R
index f001fa5..dbccec6 100644
--- a/R/visGetUtils.R
+++ b/R/visGetUtils.R
@@ -216,7 +216,7 @@ visGetSelection <- function(graph, input = paste0(graph$id, "_selection")){
#' Function to get current scale of network, with shiny only.
#'
-#' Function to get current scale of network, with shiny only. Returns the current scale of the network. 1.0 is comparible to full, 0 is zoomed out infinitely.
+#' Function to get current scale of network, with shiny only. Returns the current scale of the network. 1.0 is comparable to full, 0 is zoomed out infinitely.
#'
#' @param graph : a \code{ \link[visNetwork]{visNetworkProxy}} object
#' @param input : name of shiny input created. Default to paste0(graph$id, "_scale")
diff --git a/R/visHclust.R b/R/visHclust.R
index 3fb8f9b..88091fa 100644
--- a/R/visHclust.R
+++ b/R/visHclust.R
@@ -10,13 +10,13 @@
#' @param main Title. See \link[visNetwork]{visNetwork}
#' @param submain Subtitle. See \link[visNetwork]{visNetwork}
#' @param footer Footer. See \link[visNetwork]{visNetwork}
-#' @param distColumns \code{numeric}, indice of columns used for compute distance.
+#' @param distColumns \code{numeric}, indices of columns used for compute distance.
#' If \code{NULL} (default), keep all \code{numeric} and \code{integer} columns.
#' If Not \code{NULL}, keep only \code{numeric} and \code{integer} columns
#' @param distMethod \code{character}, the distance measure to be used for \code{\link[stats]{dist}} function. Default to 'euclidean'.
#' @param hclustMethod \code{character}, the agglomeration method to be used for \code{\link[stats]{hclust}} function. Default to 'complete'.
#' @param cutree \code{numeric} or \code{integer}, desired number of groups. Default to 0.
-#' @param tooltipColumns \code{numeric}, adding mini-graphics in tooltips using \code{sparkline} ? Indice of columns used in tooltip. All by default.
+#' @param tooltipColumns \code{numeric}, adding mini-graphics in tooltips using \code{sparkline} ? indices of columns used in tooltip. All by default.
#' So, we add boxplot / pie focus on sub-population vs all population using \code{sparkline} package. \code{NULL} to disable.
#' @param colorEdges \code{character}, color of edges. Default to 'black'.
#' @param colorGroups \code{character}, color for group in hexa ("#00FF00"). Default rainbow.
diff --git a/R/visHierarchicalLayout.R b/R/visHierarchicalLayout.R
index fac3979..472fcda 100644
--- a/R/visHierarchicalLayout.R
+++ b/R/visHierarchicalLayout.R
@@ -9,7 +9,7 @@
#'@param treeSpacing : Number. Default to 200. Distance between different trees (independent networks). This is only for the initial layout. If you enable physics, the repulsion model will denote the distance between the trees.
#'@param blockShifting : Boolean. Default to true. Method for reducing whitespace. Can be used alone or together with edge minimization. Each node will check for whitespace and will shift it's branch along with it for as far as it can, respecting the nodeSpacing on any level. This is mainly for the initial layout. If you enable physics, they layout will be determined by the physics. This will greatly speed up the stabilization time though!
#'@param edgeMinimization : Boolean. Default to true. Method for reducing whitespace. Can be used alone or together with block shifting. Enabling block shifting will usually speed up the layout process. Each node will try to move along its free axis to reduce the total length of it's edges. This is mainly for the initial layout. If you enable physics, they layout will be determined by the physics. This will greatly speed up the stabilization time though!
-#'@param parentCentralization : Boolean. Default to true. When true, the parents nodes will be centered again after the the layout algorithm has been finished.
+#'@param parentCentralization : Boolean. Default to true. When true, the parents nodes will be centered again after the layout algorithm has been finished.
#'@param direction : String. Default to 'UD'. The direction of the hierarchical layout. The available options are: UD, DU, LR, RL. To simplify: up-down, down-up, left-right, right-left.
#'@param sortMethod : String. Default to 'hubsize'. The algorithm used to ascertain the levels of the nodes based on the data. The possible options are: hubsize, directed.
#'@param shakeTowards : String. Default to 'roots'. Controls whether in directed layout should all the roots be lined up at the top and their child nodes as close to their roots as possible (roots) or all the leaves lined up at the bottom and their parents as close to their children as possible (leaves, default
diff --git a/R/visNetworkEvents.R b/R/visNetworkEvents.R
index 043e3f3..a7af147 100644
--- a/R/visNetworkEvents.R
+++ b/R/visNetworkEvents.R
@@ -27,7 +27,7 @@
#' @param zoom : Fired when the user zooms in or out. The properties tell you which direction the zoom is in. The scale is a number greater than 0, which is the same that you get with network.getScale().
#' @param showPopup : Fired when the popup (tooltip) is shown.
#' @param hidePopup : Fired when the popup (tooltip) is hidden.
-#' @param startStabilizing : Fired when stabilization starts. This is also the case when you drag a node and the physics simulation restarts to stabilize again. Stabilization does not neccesarily imply 'without showing'.
+#' @param startStabilizing : Fired when stabilization starts. This is also the case when you drag a node and the physics simulation restarts to stabilize again. Stabilization does not neccessarily imply 'without showing'.
#' @param stabilizationProgress : Fired when a multiple of the updateInterval number of iterations is reached. This only occurs in the 'hidden' stabilization. Passes an object with properties structured as:
#' @param stabilizationIterationsDone : Fired when the 'hidden' stabilization finishes. This does not necessarily mean the network is stabilized; it could also mean that the amount of iterations defined in the options has been reached.
#' @param stabilized : Fired when the network has stabilized or when the stopSimulation() has been called. The amount of iterations it took could be used to tweak the maximum amount of iterations needed to stabilize the network.
diff --git a/R/visPhysics.R b/R/visPhysics.R
index 1105d21..5e23bbc 100644
--- a/R/visPhysics.R
+++ b/R/visPhysics.R
@@ -13,7 +13,7 @@
#' \item "theta" Number. Default to 0.5. This parameter determines the boundary between consolidated long range forces and individual short range forces. To oversimplify higher values are faster but generate more errors, lower values are slower but with less errors.
#' \item "gravitationalConstant" Number. Default to -2000. Gravity attracts. We like repulsion. So the value is negative. If you want the repuzsion to be stronger, decrease the value (so -10000, -50000).
#' \item "centralGravity" Number. Default to 0.3. There is a central gravity attractor to pull the entire network back to the center.
-#' \item "springLength" Number. Default to 95. The edges are modelled as springs. This springLength here is the the rest length of the spring.
+#' \item "springLength" Number. Default to 95. The edges are modelled as springs. This springLength here is the rest length of the spring.
#' \item "springConstant" Number. Default to 0.04. This is how 'sturdy' the springs are. Higher values mean stronger springs.
#' \item "damping" Number. Default to 0.09. Accepted range: [0 .. 1]. The damping factor is how much of the velocity from the previous physics simulation iteration carries over to the next iteration.
#' \item "avoidOverlap" Number. Default to 0. Accepted range: [0 .. 1]. When larger than 0, the size of the node is taken into account. The distance will be calculated from the radius of the encompassing circle of the node for both the gravity model. Value 1 is maximum overlap avoidance.
@@ -24,7 +24,7 @@
#' \item "theta" Number. Default to 0.5. This parameter determines the boundary between consolidated long range forces and individual short range forces. To oversimplify higher values are faster but generate more errors, lower values are slower but with less errors.
#' \item "gravitationalConstant" Number. Default to -50. Gravity attracts. We like repulsion. So the value is negative. If you want the repulsion to be stronger, decrease the value (so -10000, -50000).
#' \item "centralGravity" Number. Default to 0.01. There is a central gravity attractor to pull the entire network back to the center.
-#' \item "springLength" Number. Default to 100. The edges are modelled as springs. This springLength here is the the rest length of the spring.
+#' \item "springLength" Number. Default to 100. The edges are modelled as springs. This springLength here is the rest length of the spring.
#' \item "springConstant" Number. Default to 0.08. This is how 'sturdy' the springs are. Higher values mean stronger springs.
#' \item "damping" Number. Default to 0.4. Accepted range: [0 .. 1]. The damping factor is how much of the velocity from the previous physics simulation iteration carries over to the next iteration.
#' \item "avoidOverlap" Number. Default to 0. Accepted range: [0 .. 1]. When larger than 0, the size of the node is taken into account. The distance will be calculated from the radius of the encompassing circle of the node for both the gravity model. Value 1 is maximum overlap avoidance.
@@ -34,7 +34,7 @@
#'\itemize{
#' \item "nodeDistance" Number. Default to 100. This is the range of influence for the repulsion.
#' \item "centralGravity" Number. Default to 0.2. There is a central gravity attractor to pull the entire network back to the center.
-#' \item "springLength" Number. Default to 200. The edges are modelled as springs. This springLength here is the the rest length of the spring.
+#' \item "springLength" Number. Default to 200. The edges are modelled as springs. This springLength here is the rest length of the spring.
#' \item "springConstant" Number. Default to 0.05. This is how 'sturdy' the springs are. Higher values mean stronger springs.
#' \item "damping" Number. Default to 0.09. Accepted range: [0 .. 1]. The damping factor is how much of the velocity from the previous physics simulation iteration carries over to the next iteration.
#'}
@@ -43,7 +43,7 @@
#'\itemize{
#' \item "nodeDistance" Number. Default to 120. This is the range of influence for the repulsion.
#' \item "centralGravity" Number. Default to 0.0. There is a central gravity attractor to pull the entire network back to the center.
-#' \item "springLength" Number. Default to 100. The edges are modelled as springs. This springLength here is the the rest length of the spring.
+#' \item "springLength" Number. Default to 100. The edges are modelled as springs. This springLength here is the rest length of the spring.
#' \item "springConstant" Number. Default to 0.01. This is how 'sturdy' the springs are. Higher values mean stronger springs.
#' \item "damping" Number. Default to 0.09. Accepted range: [0 .. 1]. The damping factor is how much of the velocity from the previous physics simulation iteration carries over to the next iteration.
#' \item "avoidOverlap" Number. Default to 0. Accepted range: [0 .. 1]. When larger than 0, the size of the node is taken into account. The distance will be calculated from the radius of the encompassing circle of the node for both the gravity model. Value 1 is maximum overlap avoidance.
diff --git a/R/visSave.R b/R/visSave.R
index 356b9c8..be05a97 100644
--- a/R/visSave.R
+++ b/R/visSave.R
@@ -1,7 +1,7 @@
#' Save a a visNetwork object to an HTML file
#'
#' Save a a visNetwork object to an HTML file for sharing with others. The HTML can
-#' include it's dependencies in an adjacent directory or can bundle all
+#' include its dependencies in an adjacent directory or can bundle all
#' dependencies into the HTML file (via base64 encoding).
#'
#' @param graph : a visNetwork object
diff --git a/R/visTree.R b/R/visTree.R
index e1dbd38..0d200bd 100644
--- a/R/visTree.R
+++ b/R/visTree.R
@@ -4,7 +4,7 @@
#'
#' @param object \code{rpart}, rpart object
#' @param data \code{data.frame}, adding mini-graphics in tooltips using \code{sparkline} and \code{tooltipColumns} ?
-#' @param tooltipColumns \code{numeric}, indice of columns used in tooltip. All by default.
+#' @param tooltipColumns \code{numeric}, indices of columns used in tooltip. All by default.
#' So, we add boxplot / pie focus on sub-population vs all population using \code{sparkline} package. \code{NULL} to disable.
#' @param main Title. See \link[visNetwork]{visNetwork}
#' @param submain Subtitle. See \link[visNetwork]{visNetwork}
@@ -37,7 +37,7 @@
#' @param legendPosition \code{character}, one of "left" (Default) or "right"
#' @param highlightNearest \code{list}, Highlight nearest nodes. See \link[visNetwork]{visOptions}
#' @param collapse \code{list}, collapse or not using double click on a node ? See \link[visNetwork]{visOptions}
-#' @param updateShape \code{boolean}, in case of collapse, udpate cluster node shape as terminal node ? Default to TRUE
+#' @param updateShape \code{boolean}, in case of collapse, update cluster node shape as terminal node ? Default to TRUE
#' @param tooltipDelay \code{numeric}, delay for tooltips in millisecond. Default 500
#' @param rules \code{boolean}, add rules in tooltips ? Default to TRUE
#' @param simplifyRules \code{boolean}, simplify rules writing
diff --git a/inst/docjs/network/edges.html b/inst/docjs/network/edges.html
index 95eda81..a1acd39 100644
--- a/inst/docjs/network/edges.html
+++ b/inst/docjs/network/edges.html
@@ -339,7 +339,7 @@
Options
To draw an arrow with default settings a string can be supplied. For
example: arrows:'to, from, middle' or
- 'to;from', any combination with any seperating symbol
+ 'to;from', any combination with any separating symbol
is fine. If you want to control the size of the arrowheads, you can
supply an object.
|
diff --git a/inst/htmlwidgets/lib/export/html2canvas/html2canvas.js b/inst/htmlwidgets/lib/export/html2canvas/html2canvas.js
index 770a52f..b86406b 100644
--- a/inst/htmlwidgets/lib/export/html2canvas/html2canvas.js
+++ b/inst/htmlwidgets/lib/export/html2canvas/html2canvas.js
@@ -797,7 +797,7 @@ function documentFromHTML(src) {
doc.close();
} catch(ee) {
log("createHTMLDocument write not supported, falling back to document.body.innerHTML");
- doc.body.innerHTML = html; // ie9 doesnt support writing to documentElement
+ doc.body.innerHTML = html; // ie9 doesn't support writing to documentElement
}
}
@@ -1383,7 +1383,7 @@ ImageLoader.prototype.fetch = function(nodes) {
this.images = nodes.reduce(bind(this.findBackgroundImage, this), this.findImages(nodes));
this.images.forEach(function(image, index) {
image.promise.then(function() {
- log("Succesfully loaded image #"+ (index+1), image);
+ log("Successfully loaded image #"+ (index+1), image);
}, function(e) {
log("Failed loading image #"+ (index+1), image, e);
});
diff --git a/inst/htmlwidgets/lib/export/jsPDF/jspdf.debug.js b/inst/htmlwidgets/lib/export/jsPDF/jspdf.debug.js
index c7f0bb8..e761ea8 100644
--- a/inst/htmlwidgets/lib/export/jsPDF/jspdf.debug.js
+++ b/inst/htmlwidgets/lib/export/jsPDF/jspdf.debug.js
@@ -508,14 +508,14 @@ var jsPDF = function (global) {
},
/**
- * FontObject describes a particular font as member of an instnace of jsPDF
+ * FontObject describes a particular font as member of an instance of jsPDF
*
* It's a collection of properties like 'id' (to be used in PDF stream),
* 'fontName' (font's family name), 'fontStyle' (font's style variant label)
*
* @class
* @public
- * @property id {String} PDF-document-instance-specific label assinged to the font.
+ * @property id {String} PDF-document-instance-specific label assigned to the font.
* @property PostScriptName {String} PDF specification full name for the font
* @property encoding {Object} Encoding_name-to-Font_metrics_object mapping.
* @name FontObject
@@ -1441,7 +1441,7 @@ var jsPDF = function (global) {
}
// Using "'" ("go next line and render text" mark) would save space but would complicate our rendering code, templates
- // BT .. ET does NOT have default settings for Tf. You must state that explicitely every time for BT .. ET
+ // BT .. ET does NOT have default settings for Tf. You must state that explicitly every time for BT .. ET
// if you want text transformation matrix (+ multiline) to work reliably (which reads sizes of things from font declarations)
// Thus, there is NO useful, *reliable* concept of "default" font for a page.
// The fact that "default" (reuse font used before) font worked before in basic cases is an accident
@@ -1693,7 +1693,7 @@ var jsPDF = function (global) {
};
/**
- * Adds an circle to PDF
+ * Adds a circle to PDF
*
* @param {Number} x Coordinate (in units declared at inception of PDF document) against left edge of the page
* @param {Number} y Coordinate (in units declared at inception of PDF document) against upper edge of the page
@@ -3281,7 +3281,7 @@ AcroForm.ChoiceField = function () {
this.combo = false;
/**
* Defines, whether the Choice Field is an Edit Field.
- * An Edit Field is automatically an Combo Field.
+ * An Edit Field is automatically a Combo Field.
*/
Object.defineProperty(this, 'edit', {
enumerable: true,
@@ -3385,7 +3385,7 @@ AcroForm.internal.inherit(AcroForm.RadioButton, AcroForm.Button);
window["RadioButton"] = AcroForm.RadioButton;
/*
- * The Child classs of a RadioButton (the radioGroup)
+ * The Child class of a RadioButton (the radioGroup)
* -> The single Buttons
*/
AcroForm.ChildClass = function (parent, name) {
@@ -3563,7 +3563,7 @@ AcroForm.internal.calculateFontSpace = function (text, fontsize, fonttype) {
context.fontcolor = 'black';
// Calculate height:
var context = canvas.getContext('2d');
- res.height = context.measureText("3").width * 1.5; // 3 because in ZapfDingbats its a Hook and a 3 in normal fonts
+ res.height = context.measureText("3").width * 1.5; // 3 because in ZapfDingbats it's a Hook and a 3 in normal fonts
context.restore();
var width = res.width;
@@ -4285,7 +4285,7 @@ AcroForm.internal.setBitPosition = function (variable, position, value) {
* @returns an Array containing the following
* [0] the complete data URI
* [1]
- * [2] format - the second part of the mime-type i.e 'png' in 'image/png'
+ * [2] format - the second part of the mime-type i.e. 'png' in 'image/png'
* [4]
*/
jsPDFAPI.extractInfoFromBase64DataURI = function (dataURI) {
@@ -4338,7 +4338,7 @@ AcroForm.internal.setBitPosition = function (variable, position, value) {
* @see this discussion
* http://stackoverflow.com/questions/6965107/converting-between-strings-and-arraybuffers
*
- * As stated, i imagine the method below is highly inefficent for large files.
+ * As stated, i imagine the method below is highly inefficient for large files.
*
* Also of note from Mozilla,
*
@@ -5955,7 +5955,7 @@ AcroForm.internal.setBitPosition = function (variable, position, value) {
},
_gotoPage: function _gotoPage(pageOneBased) {
- // This is a stub to be overriden if needed
+ // This is a stub to be overridden if needed
},
lineTo: function lineTo(x, y) {
@@ -9336,7 +9336,7 @@ MIT license.
codes, NOT CIDs or other codes matching the StandardEncoding table of the
standard PDF fonts.
Future:
- Also included is the encoding maping table, converting Unicode (UCS-2, UTF-16)
+ Also included is the encoding mapping table, converting Unicode (UCS-2, UTF-16)
char codes to StandardEncoding character codes. The encoding table is to be used
somewhere around "pdfEscape" call.
*/
@@ -9615,212 +9615,212 @@ Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
};
})(jsPDF.API);
-/* Blob.js
- * A Blob implementation.
- * 2014-07-24
- *
- * By Eli Grey, http://eligrey.com
- * By Devin Samarin, https://github.com/dsamarin
- * License: X11/MIT
- * See https://github.com/eligrey/Blob.js/blob/master/LICENSE.md
- */
-
-/*global self, unescape */
-/*jslint bitwise: true, regexp: true, confusion: true, es5: true, vars: true, white: true,
- plusplus: true */
-
-/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
-
-(function (view) {
- "use strict";
-
- view.URL = view.URL || view.webkitURL;
-
- if (view.Blob && view.URL) {
- try {
- new Blob;
- return;
- } catch (e) {}
- }
-
- // Internally we use a BlobBuilder implementation to base Blob off of
- // in order to support older browsers that only have BlobBuilder
- var BlobBuilder = view.BlobBuilder || view.WebKitBlobBuilder || view.MozBlobBuilder || (function(view) {
- var
- get_class = function(object) {
- return Object.prototype.toString.call(object).match(/^\[object\s(.*)\]$/)[1];
- }
- , FakeBlobBuilder = function BlobBuilder() {
- this.data = [];
- }
- , FakeBlob = function Blob(data, type, encoding) {
- this.data = data;
- this.size = data.length;
- this.type = type;
- this.encoding = encoding;
- }
- , FBB_proto = FakeBlobBuilder.prototype
- , FB_proto = FakeBlob.prototype
- , FileReaderSync = view.FileReaderSync
- , FileException = function(type) {
- this.code = this[this.name = type];
- }
- , file_ex_codes = (
- "NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR "
- + "NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR"
- ).split(" ")
- , file_ex_code = file_ex_codes.length
- , real_URL = view.URL || view.webkitURL || view
- , real_create_object_URL = real_URL.createObjectURL
- , real_revoke_object_URL = real_URL.revokeObjectURL
- , URL = real_URL
- , btoa = view.btoa
- , atob = view.atob
-
- , ArrayBuffer = view.ArrayBuffer
- , Uint8Array = view.Uint8Array
-
- , origin = /^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;
- FakeBlob.fake = FB_proto.fake = true;
- while (file_ex_code--) {
- FileException.prototype[file_ex_codes[file_ex_code]] = file_ex_code + 1;
- }
- // Polyfill URL
- if (!real_URL.createObjectURL) {
- URL = view.URL = function(uri) {
- var
- uri_info = document.createElementNS("http://www.w3.org/1999/xhtml", "a")
- , uri_origin;
- uri_info.href = uri;
- if (!("origin" in uri_info)) {
- if (uri_info.protocol.toLowerCase() === "data:") {
- uri_info.origin = null;
- } else {
- uri_origin = uri.match(origin);
- uri_info.origin = uri_origin && uri_origin[1];
- }
- }
- return uri_info;
- };
- }
- URL.createObjectURL = function(blob) {
- var
- type = blob.type
- , data_URI_header;
- if (type === null) {
- type = "application/octet-stream";
- }
- if (blob instanceof FakeBlob) {
- data_URI_header = "data:" + type;
- if (blob.encoding === "base64") {
- return data_URI_header + ";base64," + blob.data;
- } else if (blob.encoding === "URI") {
- return data_URI_header + "," + decodeURIComponent(blob.data);
- } if (btoa) {
- return data_URI_header + ";base64," + btoa(blob.data);
- } else {
- return data_URI_header + "," + encodeURIComponent(blob.data);
- }
- } else if (real_create_object_URL) {
- return real_create_object_URL.call(real_URL, blob);
- }
- };
- URL.revokeObjectURL = function(object_URL) {
- if (object_URL.substring(0, 5) !== "data:" && real_revoke_object_URL) {
- real_revoke_object_URL.call(real_URL, object_URL);
- }
- };
- FBB_proto.append = function(data/*, endings*/) {
- var bb = this.data;
- // decode data to a binary string
- if (Uint8Array && (data instanceof ArrayBuffer || data instanceof Uint8Array)) {
- var
- str = ""
- , buf = new Uint8Array(data)
- , i = 0
- , buf_len = buf.length;
- for (; i < buf_len; i++) {
- str += String.fromCharCode(buf[i]);
- }
- bb.push(str);
- } else if (get_class(data) === "Blob" || get_class(data) === "File") {
- if (FileReaderSync) {
- var fr = new FileReaderSync;
- bb.push(fr.readAsBinaryString(data));
- } else {
- // async FileReader won't work as BlobBuilder is sync
- throw new FileException("NOT_READABLE_ERR");
- }
- } else if (data instanceof FakeBlob) {
- if (data.encoding === "base64" && atob) {
- bb.push(atob(data.data));
- } else if (data.encoding === "URI") {
- bb.push(decodeURIComponent(data.data));
- } else if (data.encoding === "raw") {
- bb.push(data.data);
- }
- } else {
- if (typeof data !== "string") {
- data += ""; // convert unsupported types to strings
- }
- // decode UTF-16 to binary string
- bb.push(unescape(encodeURIComponent(data)));
- }
- };
- FBB_proto.getBlob = function(type) {
- if (!arguments.length) {
- type = null;
- }
- return new FakeBlob(this.data.join(""), type, "raw");
- };
- FBB_proto.toString = function() {
- return "[object BlobBuilder]";
- };
- FB_proto.slice = function(start, end, type) {
- var args = arguments.length;
- if (args < 3) {
- type = null;
- }
- return new FakeBlob(
- this.data.slice(start, args > 1 ? end : this.data.length)
- , type
- , this.encoding
- );
- };
- FB_proto.toString = function() {
- return "[object Blob]";
- };
- FB_proto.close = function() {
- this.size = 0;
- delete this.data;
- };
- return FakeBlobBuilder;
- }(view));
-
- view.Blob = function(blobParts, options) {
- var type = options ? (options.type || "") : "";
- var builder = new BlobBuilder();
- if (blobParts) {
- for (var i = 0, len = blobParts.length; i < len; i++) {
- if (Uint8Array && blobParts[i] instanceof Uint8Array) {
- builder.append(blobParts[i].buffer);
- }
- else {
- builder.append(blobParts[i]);
- }
- }
- }
- var blob = builder.getBlob(type);
- if (!blob.slice && blob.webkitSlice) {
- blob.slice = blob.webkitSlice;
- }
- return blob;
- };
-
- var getPrototypeOf = Object.getPrototypeOf || function(object) {
- return object.__proto__;
- };
- view.Blob.prototype = getPrototypeOf(new view.Blob());
+/* Blob.js
+ * A Blob implementation.
+ * 2014-07-24
+ *
+ * By Eli Grey, http://eligrey.com
+ * By Devin Samarin, https://github.com/dsamarin
+ * License: X11/MIT
+ * See https://github.com/eligrey/Blob.js/blob/master/LICENSE.md
+ */
+
+/*global self, unescape */
+/*jslint bitwise: true, regexp: true, confusion: true, es5: true, vars: true, white: true,
+ plusplus: true */
+
+/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
+
+(function (view) {
+ "use strict";
+
+ view.URL = view.URL || view.webkitURL;
+
+ if (view.Blob && view.URL) {
+ try {
+ new Blob;
+ return;
+ } catch (e) {}
+ }
+
+ // Internally we use a BlobBuilder implementation to base Blob off of
+ // in order to support older browsers that only have BlobBuilder
+ var BlobBuilder = view.BlobBuilder || view.WebKitBlobBuilder || view.MozBlobBuilder || (function(view) {
+ var
+ get_class = function(object) {
+ return Object.prototype.toString.call(object).match(/^\[object\s(.*)\]$/)[1];
+ }
+ , FakeBlobBuilder = function BlobBuilder() {
+ this.data = [];
+ }
+ , FakeBlob = function Blob(data, type, encoding) {
+ this.data = data;
+ this.size = data.length;
+ this.type = type;
+ this.encoding = encoding;
+ }
+ , FBB_proto = FakeBlobBuilder.prototype
+ , FB_proto = FakeBlob.prototype
+ , FileReaderSync = view.FileReaderSync
+ , FileException = function(type) {
+ this.code = this[this.name = type];
+ }
+ , file_ex_codes = (
+ "NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR "
+ + "NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR"
+ ).split(" ")
+ , file_ex_code = file_ex_codes.length
+ , real_URL = view.URL || view.webkitURL || view
+ , real_create_object_URL = real_URL.createObjectURL
+ , real_revoke_object_URL = real_URL.revokeObjectURL
+ , URL = real_URL
+ , btoa = view.btoa
+ , atob = view.atob
+
+ , ArrayBuffer = view.ArrayBuffer
+ , Uint8Array = view.Uint8Array
+
+ , origin = /^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;
+ FakeBlob.fake = FB_proto.fake = true;
+ while (file_ex_code--) {
+ FileException.prototype[file_ex_codes[file_ex_code]] = file_ex_code + 1;
+ }
+ // Polyfill URL
+ if (!real_URL.createObjectURL) {
+ URL = view.URL = function(uri) {
+ var
+ uri_info = document.createElementNS("http://www.w3.org/1999/xhtml", "a")
+ , uri_origin;
+ uri_info.href = uri;
+ if (!("origin" in uri_info)) {
+ if (uri_info.protocol.toLowerCase() === "data:") {
+ uri_info.origin = null;
+ } else {
+ uri_origin = uri.match(origin);
+ uri_info.origin = uri_origin && uri_origin[1];
+ }
+ }
+ return uri_info;
+ };
+ }
+ URL.createObjectURL = function(blob) {
+ var
+ type = blob.type
+ , data_URI_header;
+ if (type === null) {
+ type = "application/octet-stream";
+ }
+ if (blob instanceof FakeBlob) {
+ data_URI_header = "data:" + type;
+ if (blob.encoding === "base64") {
+ return data_URI_header + ";base64," + blob.data;
+ } else if (blob.encoding === "URI") {
+ return data_URI_header + "," + decodeURIComponent(blob.data);
+ } if (btoa) {
+ return data_URI_header + ";base64," + btoa(blob.data);
+ } else {
+ return data_URI_header + "," + encodeURIComponent(blob.data);
+ }
+ } else if (real_create_object_URL) {
+ return real_create_object_URL.call(real_URL, blob);
+ }
+ };
+ URL.revokeObjectURL = function(object_URL) {
+ if (object_URL.substring(0, 5) !== "data:" && real_revoke_object_URL) {
+ real_revoke_object_URL.call(real_URL, object_URL);
+ }
+ };
+ FBB_proto.append = function(data/*, endings*/) {
+ var bb = this.data;
+ // decode data to a binary string
+ if (Uint8Array && (data instanceof ArrayBuffer || data instanceof Uint8Array)) {
+ var
+ str = ""
+ , buf = new Uint8Array(data)
+ , i = 0
+ , buf_len = buf.length;
+ for (; i < buf_len; i++) {
+ str += String.fromCharCode(buf[i]);
+ }
+ bb.push(str);
+ } else if (get_class(data) === "Blob" || get_class(data) === "File") {
+ if (FileReaderSync) {
+ var fr = new FileReaderSync;
+ bb.push(fr.readAsBinaryString(data));
+ } else {
+ // async FileReader won't work as BlobBuilder is sync
+ throw new FileException("NOT_READABLE_ERR");
+ }
+ } else if (data instanceof FakeBlob) {
+ if (data.encoding === "base64" && atob) {
+ bb.push(atob(data.data));
+ } else if (data.encoding === "URI") {
+ bb.push(decodeURIComponent(data.data));
+ } else if (data.encoding === "raw") {
+ bb.push(data.data);
+ }
+ } else {
+ if (typeof data !== "string") {
+ data += ""; // convert unsupported types to strings
+ }
+ // decode UTF-16 to binary string
+ bb.push(unescape(encodeURIComponent(data)));
+ }
+ };
+ FBB_proto.getBlob = function(type) {
+ if (!arguments.length) {
+ type = null;
+ }
+ return new FakeBlob(this.data.join(""), type, "raw");
+ };
+ FBB_proto.toString = function() {
+ return "[object BlobBuilder]";
+ };
+ FB_proto.slice = function(start, end, type) {
+ var args = arguments.length;
+ if (args < 3) {
+ type = null;
+ }
+ return new FakeBlob(
+ this.data.slice(start, args > 1 ? end : this.data.length)
+ , type
+ , this.encoding
+ );
+ };
+ FB_proto.toString = function() {
+ return "[object Blob]";
+ };
+ FB_proto.close = function() {
+ this.size = 0;
+ delete this.data;
+ };
+ return FakeBlobBuilder;
+ }(view));
+
+ view.Blob = function(blobParts, options) {
+ var type = options ? (options.type || "") : "";
+ var builder = new BlobBuilder();
+ if (blobParts) {
+ for (var i = 0, len = blobParts.length; i < len; i++) {
+ if (Uint8Array && blobParts[i] instanceof Uint8Array) {
+ builder.append(blobParts[i].buffer);
+ }
+ else {
+ builder.append(blobParts[i]);
+ }
+ }
+ }
+ var blob = builder.getBlob(type);
+ if (!blob.slice && blob.webkitSlice) {
+ blob.slice = blob.webkitSlice;
+ }
+ return blob;
+ };
+
+ var getPrototypeOf = Object.getPrototypeOf || function(object) {
+ return object.__proto__;
+ };
+ view.Blob.prototype = getPrototypeOf(new view.Blob());
}(typeof self !== "undefined" && self || typeof window !== "undefined" && window || undefined.content || undefined));
/* FileSaver.js
@@ -13854,7 +13854,7 @@ ImageLoader.prototype.fetch = function(nodes) {
this.images = nodes.reduce(bind(this.findBackgroundImage, this), this.findImages(nodes));
this.images.forEach(function(image, index) {
image.promise.then(function() {
- log("Succesfully loaded image #"+ (index+1), image);
+ log("Successfully loaded image #"+ (index+1), image);
}, function(e) {
log("Failed loading image #"+ (index+1), image, e);
});
@@ -15238,7 +15238,7 @@ function documentFromHTML(src) {
doc.close();
} catch(ee) {
log("createHTMLDocument write not supported, falling back to document.body.innerHTML");
- doc.body.innerHTML = html; // ie9 doesnt support writing to documentElement
+ doc.body.innerHTML = html; // ie9 doesn't support writing to documentElement
}
}
diff --git a/inst/htmlwidgets/visNetwork.js b/inst/htmlwidgets/visNetwork.js
index 4099287..8cb746a 100644
--- a/inst/htmlwidgets/visNetwork.js
+++ b/inst/htmlwidgets/visNetwork.js
@@ -213,19 +213,19 @@ function resetOneEdge(edge, hideColor1, hideColor2, type){
console.info("edge.hiddenColor")
console.info(edge.hiddenColor)*/
- var treat_egde = false;
+ var treat_edge = false;
if(type === "cluster"){
if(edge.isHardToRead !== undefined){ // we have to reset this node
if(edge.isHardToRead){
- treat_egde = true;
+ treat_edge = true;
} else if(edge.isHardToRead === false && (edge.color.color === hideColor1 || edge.color.color === hideColor2)){
- treat_egde = true;
+ treat_edge = true;
}
} else if(edge.color.color === hideColor1 || edge.color.color === hideColor2){
- treat_egde = true;
+ treat_edge = true;
}
- if(treat_egde){
+ if(treat_edge){
// get back color
if (edge.hiddenColor !== undefined) {
edge.color = edge.hiddenColor;
@@ -1886,7 +1886,7 @@ if (HTMLWidgets.shinyMode){
Shiny.addCustomMessageHandler('visShinyCustomOptions', updateVisOptions);
- // udpate nodes data
+ // update nodes data
Shiny.addCustomMessageHandler('visShinyUpdateNodes', function(data){
// get container id
var el = document.getElementById("graph"+data.id);
@@ -1952,7 +1952,7 @@ if (HTMLWidgets.shinyMode){
}
});
- // udpate edges data
+ // update edges data
Shiny.addCustomMessageHandler('visShinyUpdateEdges', function(data){
// get container id
var el = document.getElementById("graph"+data.id);
@@ -3952,13 +3952,13 @@ HTMLWidgets.widget({
function saveEdge(data, callback, cmd) {
if(cmd === "editEdge"){
- callback(data); //must be first called for egde id !
+ callback(data); //must be first called for edge id !
if (window.Shiny){
var obj = {cmd: cmd, id: data.id, from: data.from, to: data.to};
Shiny.onInputChange(el.id + '_graphChange', obj);
}
} else if(cmd === "addEdge"){
- callback(data); //must be first called for egde id !
+ callback(data); //must be first called for edge id !
if (window.Shiny){
var obj = {cmd: cmd, id: data.id, from: data.from, to: data.to};
Shiny.onInputChange(el.id + '_graphChange', obj);
diff --git a/man/visConfigure.Rd b/man/visConfigure.Rd
index 5a33cdb..2424508 100644
--- a/man/visConfigure.Rd
+++ b/man/visConfigure.Rd
@@ -17,7 +17,7 @@ visConfigure(
\item{enabled}{: Boolean. Default to true. Toggle the configuration interface on or off. This is an optional parameter. If left undefined and any of the other properties of this object are defined, this will be set to true.}
-\item{filter}{: String, Array, Boolean, Function. Default to true. When a boolean, true gives you all options, false will not show any. If a string is supplied, any combination of the following is allowed: nodes, edges, layout, interaction, manipulation, physics, selection, renderer. Feel free to come up with a fun seperating character. Finally, when supplied an array of strings, any of the previously mentioned fields are accepted.}
+\item{filter}{: String, Array, Boolean, Function. Default to true. When a boolean, true gives you all options, false will not show any. If a string is supplied, any combination of the following is allowed: nodes, edges, layout, interaction, manipulation, physics, selection, renderer. Feel free to come up with a fun separating character. Finally, when supplied an array of strings, any of the previously mentioned fields are accepted.}
\item{container}{: DOM element. This allows you to put the configure list in another HTML container than below the network.}
diff --git a/man/visEdges.Rd b/man/visEdges.Rd
index 1ee81ef..32d132e 100644
--- a/man/visEdges.Rd
+++ b/man/visEdges.Rd
@@ -84,7 +84,7 @@ visEdges(
\item "vadjust, multi, bold, ital, boldital, mono" See \link[visNetwork]{visDocumentation}
}}
-\item{arrows}{: Named list or String. To draw an arrow with default settings a string can be supplied. For example: 'to, from,middle' or 'to;from', any combination with any seperating symbol is fine.
+\item{arrows}{: Named list or String. To draw an arrow with default settings a string can be supplied. For example: 'to, from,middle' or 'to;from', any combination with any separating symbol is fine.
If you want to control the size of the arrowheads, you can supply an object. See \link[visNetwork]{visDocumentation}}
\item{arrowStrikethrough}{: Boolean. Default to True. When false, the edge stops at the arrow. This can be useful if you have thick lines and you want the arrow to end in a point. Middle arrows are not affected by this.}
diff --git a/man/visEvents.Rd b/man/visEvents.Rd
index 52b6ffb..93963c7 100644
--- a/man/visEvents.Rd
+++ b/man/visEvents.Rd
@@ -90,7 +90,7 @@ visEvents(
\item{hidePopup}{: Fired when the popup (tooltip) is hidden.}
-\item{startStabilizing}{: Fired when stabilization starts. This is also the case when you drag a node and the physics simulation restarts to stabilize again. Stabilization does not neccesarily imply 'without showing'.}
+\item{startStabilizing}{: Fired when stabilization starts. This is also the case when you drag a node and the physics simulation restarts to stabilize again. Stabilization does not neccessarily imply 'without showing'.}
\item{stabilizationProgress}{: Fired when a multiple of the updateInterval number of iterations is reached. This only occurs in the 'hidden' stabilization. Passes an object with properties structured as:}
diff --git a/man/visExport.Rd b/man/visExport.Rd
index 6b2a8d2..783575c 100644
--- a/man/visExport.Rd
+++ b/man/visExport.Rd
@@ -27,7 +27,7 @@ visExport(
\item{background}{: background color, default to white (#fff). Work only if network background is transparent.}
-\item{float}{: button postion, default to "right"}
+\item{float}{: button position, default to "right"}
\item{style}{: button css style.}
diff --git a/man/visGetScale.Rd b/man/visGetScale.Rd
index cc612d8..865f767 100644
--- a/man/visGetScale.Rd
+++ b/man/visGetScale.Rd
@@ -12,7 +12,7 @@ visGetScale(graph, input = paste0(graph$id, "_scale"))
\item{input}{: name of shiny input created. Default to paste0(graph$id, "_scale")}
}
\description{
-Function to get current scale of network, with shiny only. Returns the current scale of the network. 1.0 is comparible to full, 0 is zoomed out infinitely.
+Function to get current scale of network, with shiny only. Returns the current scale of the network. 1.0 is comparable to full, 0 is zoomed out infinitely.
}
\examples{
\dontrun{
diff --git a/man/visHclust.Rd b/man/visHclust.Rd
index 9e131db..355f899 100644
--- a/man/visHclust.Rd
+++ b/man/visHclust.Rd
@@ -97,7 +97,7 @@ visHclust(object, ...)
\item{footer}{Footer. See \link[visNetwork]{visNetwork}}
-\item{distColumns}{\code{numeric}, indice of columns used for compute distance.
+\item{distColumns}{\code{numeric}, indices of columns used for compute distance.
If \code{NULL} (default), keep all \code{numeric} and \code{integer} columns.
If Not \code{NULL}, keep only \code{numeric} and \code{integer} columns}
@@ -107,7 +107,7 @@ If Not \code{NULL}, keep only \code{numeric} and \code{integer} columns}
\item{cutree}{\code{numeric} or \code{integer}, desired number of groups. Default to 0.}
-\item{tooltipColumns}{\code{numeric}, adding mini-graphics in tooltips using \code{sparkline} ? Indice of columns used in tooltip. All by default.
+\item{tooltipColumns}{\code{numeric}, adding mini-graphics in tooltips using \code{sparkline} ? Indices of columns used in tooltip. All by default.
So, we add boxplot / pie focus on sub-population vs all population using \code{sparkline} package. \code{NULL} to disable.}
\item{colorEdges}{\code{character}, color of edges. Default to 'black'.}
diff --git a/man/visHierarchicalLayout.Rd b/man/visHierarchicalLayout.Rd
index 695ff3a..423394f 100644
--- a/man/visHierarchicalLayout.Rd
+++ b/man/visHierarchicalLayout.Rd
@@ -33,7 +33,7 @@ visHierarchicalLayout(
\item{edgeMinimization}{: Boolean. Default to true. Method for reducing whitespace. Can be used alone or together with block shifting. Enabling block shifting will usually speed up the layout process. Each node will try to move along its free axis to reduce the total length of it's edges. This is mainly for the initial layout. If you enable physics, they layout will be determined by the physics. This will greatly speed up the stabilization time though!}
-\item{parentCentralization}{: Boolean. Default to true. When true, the parents nodes will be centered again after the the layout algorithm has been finished.}
+\item{parentCentralization}{: Boolean. Default to true. When true, the parents nodes will be centered again after the layout algorithm has been finished.}
\item{direction}{: String. Default to 'UD'. The direction of the hierarchical layout. The available options are: UD, DU, LR, RL. To simplify: up-down, down-up, left-right, right-left.}
diff --git a/man/visNetwork-treeModule.Rd b/man/visNetwork-treeModule.Rd
index 90ed7b2..b972928 100644
--- a/man/visNetwork-treeModule.Rd
+++ b/man/visNetwork-treeModule.Rd
@@ -68,7 +68,7 @@ visTreeModuleUI(
\item{tooltip_data}{\code{reactive}, a \code{data.frame}. if \code{data} is a \code{rpart},
data.frame used to build tree in order to plot \code{sparkline}}
-\item{tooltipColumns}{\code{numeric}, indice of columns used in tooltip. All by default.
+\item{tooltipColumns}{\code{numeric}, indices of columns used in tooltip. All by default.
So, we add boxplot / pie focus on sub-population vs all population using \code{sparkline} package. \code{NULL} to disable.}
\item{main}{Title. See \link[visNetwork]{visNetwork}}
@@ -134,7 +134,7 @@ if regression tree : \code{character}, 2 colors (min and max, in hexa)}
\item{collapse}{\code{list}, collapse or not using double click on a node ? See \link[visNetwork]{visOptions}}
-\item{updateShape}{\code{boolean}, in case of collapse, udpate cluster node shape as terminal node ? Default to TRUE}
+\item{updateShape}{\code{boolean}, in case of collapse, update cluster node shape as terminal node ? Default to TRUE}
\item{tooltipDelay}{\code{numeric}, delay for tooltips in millisecond. Default 500}
diff --git a/man/visPhysics.Rd b/man/visPhysics.Rd
index 34e5fda..0fc1e75 100644
--- a/man/visPhysics.Rd
+++ b/man/visPhysics.Rd
@@ -36,7 +36,7 @@ visPhysics(
\item "theta" Number. Default to 0.5. This parameter determines the boundary between consolidated long range forces and individual short range forces. To oversimplify higher values are faster but generate more errors, lower values are slower but with less errors.
\item "gravitationalConstant" Number. Default to -2000. Gravity attracts. We like repulsion. So the value is negative. If you want the repuzsion to be stronger, decrease the value (so -10000, -50000).
\item "centralGravity" Number. Default to 0.3. There is a central gravity attractor to pull the entire network back to the center.
- \item "springLength" Number. Default to 95. The edges are modelled as springs. This springLength here is the the rest length of the spring.
+ \item "springLength" Number. Default to 95. The edges are modelled as springs. This springLength here is the rest length of the spring.
\item "springConstant" Number. Default to 0.04. This is how 'sturdy' the springs are. Higher values mean stronger springs.
\item "damping" Number. Default to 0.09. Accepted range: [0 .. 1]. The damping factor is how much of the velocity from the previous physics simulation iteration carries over to the next iteration.
\item "avoidOverlap" Number. Default to 0. Accepted range: [0 .. 1]. When larger than 0, the size of the node is taken into account. The distance will be calculated from the radius of the encompassing circle of the node for both the gravity model. Value 1 is maximum overlap avoidance.
@@ -47,7 +47,7 @@ visPhysics(
\item "theta" Number. Default to 0.5. This parameter determines the boundary between consolidated long range forces and individual short range forces. To oversimplify higher values are faster but generate more errors, lower values are slower but with less errors.
\item "gravitationalConstant" Number. Default to -50. Gravity attracts. We like repulsion. So the value is negative. If you want the repulsion to be stronger, decrease the value (so -10000, -50000).
\item "centralGravity" Number. Default to 0.01. There is a central gravity attractor to pull the entire network back to the center.
- \item "springLength" Number. Default to 100. The edges are modelled as springs. This springLength here is the the rest length of the spring.
+ \item "springLength" Number. Default to 100. The edges are modelled as springs. This springLength here is the rest length of the spring.
\item "springConstant" Number. Default to 0.08. This is how 'sturdy' the springs are. Higher values mean stronger springs.
\item "damping" Number. Default to 0.4. Accepted range: [0 .. 1]. The damping factor is how much of the velocity from the previous physics simulation iteration carries over to the next iteration.
\item "avoidOverlap" Number. Default to 0. Accepted range: [0 .. 1]. When larger than 0, the size of the node is taken into account. The distance will be calculated from the radius of the encompassing circle of the node for both the gravity model. Value 1 is maximum overlap avoidance.
@@ -57,7 +57,7 @@ visPhysics(
\itemize{
\item "nodeDistance" Number. Default to 100. This is the range of influence for the repulsion.
\item "centralGravity" Number. Default to 0.2. There is a central gravity attractor to pull the entire network back to the center.
- \item "springLength" Number. Default to 200. The edges are modelled as springs. This springLength here is the the rest length of the spring.
+ \item "springLength" Number. Default to 200. The edges are modelled as springs. This springLength here is the rest length of the spring.
\item "springConstant" Number. Default to 0.05. This is how 'sturdy' the springs are. Higher values mean stronger springs.
\item "damping" Number. Default to 0.09. Accepted range: [0 .. 1]. The damping factor is how much of the velocity from the previous physics simulation iteration carries over to the next iteration.
}}
@@ -66,7 +66,7 @@ visPhysics(
\itemize{
\item "nodeDistance" Number. Default to 120. This is the range of influence for the repulsion.
\item "centralGravity" Number. Default to 0.0. There is a central gravity attractor to pull the entire network back to the center.
- \item "springLength" Number. Default to 100. The edges are modelled as springs. This springLength here is the the rest length of the spring.
+ \item "springLength" Number. Default to 100. The edges are modelled as springs. This springLength here is the rest length of the spring.
\item "springConstant" Number. Default to 0.01. This is how 'sturdy' the springs are. Higher values mean stronger springs.
\item "damping" Number. Default to 0.09. Accepted range: [0 .. 1]. The damping factor is how much of the velocity from the previous physics simulation iteration carries over to the next iteration.
\item "avoidOverlap" Number. Default to 0. Accepted range: [0 .. 1]. When larger than 0, the size of the node is taken into account. The distance will be calculated from the radius of the encompassing circle of the node for both the gravity model. Value 1 is maximum overlap avoidance.
diff --git a/man/visSave.Rd b/man/visSave.Rd
index 55f958e..5c7def1 100644
--- a/man/visSave.Rd
+++ b/man/visSave.Rd
@@ -17,7 +17,7 @@ visSave(graph, file, selfcontained = TRUE, background = "white")
}
\description{
Save a a visNetwork object to an HTML file for sharing with others. The HTML can
-include it's dependencies in an adjacent directory or can bundle all
+include its dependencies in an adjacent directory or can bundle all
dependencies into the HTML file (via base64 encoding).
}
\examples{
diff --git a/man/visTree.Rd b/man/visTree.Rd
index 822401a..58affc0 100644
--- a/man/visTree.Rd
+++ b/man/visTree.Rd
@@ -53,7 +53,7 @@ visTree(
\item{data}{\code{data.frame}, adding mini-graphics in tooltips using \code{sparkline} and \code{tooltipColumns} ?}
-\item{tooltipColumns}{\code{numeric}, indice of columns used in tooltip. All by default.
+\item{tooltipColumns}{\code{numeric}, indices of columns used in tooltip. All by default.
So, we add boxplot / pie focus on sub-population vs all population using \code{sparkline} package. \code{NULL} to disable.}
\item{main}{Title. See \link[visNetwork]{visNetwork}}
@@ -119,7 +119,7 @@ if regression tree : \code{character}, 2 colors (min and max, in hexa)}
\item{collapse}{\code{list}, collapse or not using double click on a node ? See \link[visNetwork]{visOptions}}
-\item{updateShape}{\code{boolean}, in case of collapse, udpate cluster node shape as terminal node ? Default to TRUE}
+\item{updateShape}{\code{boolean}, in case of collapse, update cluster node shape as terminal node ? Default to TRUE}
\item{tooltipDelay}{\code{numeric}, delay for tooltips in millisecond. Default 500}