Commit a1e3d924 authored by Bertjan Broeksema's avatar Bertjan Broeksema
Browse files

Increase the limit for points to be shown from 1000 to 2500.

parent 2dd187b1
...@@ -86,9 +86,9 @@ p.plotdata <- function(dim.red.res, labels, processedData, type) { ...@@ -86,9 +86,9 @@ p.plotdata <- function(dim.red.res, labels, processedData, type) {
} }
# If we have a large number of individuals the JSON will be too big and the visualisation will fail. # If we have a large number of individuals the JSON will be too big and the visualisation will fail.
# TODO: fine-tune the 1000 individuals threshold # TODO: fine-tune the 2500 individuals threshold
individualProjections <- NULL individualProjections <- NULL
includeIndividuals <- nrow(dim.red.res[[indName]]$coord) < 1000 includeIndividuals <- nrow(dim.red.res[[indName]]$coord) < 2500
if (includeIndividuals) { if (includeIndividuals) {
individualProjections <- p.projections(dim.red.res, column.results = indName) individualProjections <- p.projections(dim.red.res, column.results = indName)
...@@ -165,8 +165,8 @@ p.mca.plotdata <- function(dim.red.res, labels, processedData, nd) { ...@@ -165,8 +165,8 @@ p.mca.plotdata <- function(dim.red.res, labels, processedData, nd) {
} }
# If we have a large number of individuals the JSON will be too big and the visualisation will fail. # If we have a large number of individuals the JSON will be too big and the visualisation will fail.
# TODO: fine-tune the 1000 individuals threshold # TODO: fine-tune the 2500 individuals threshold
includeIndividuals <- nrow(processedData) < 1000 includeIndividuals <- nrow(processedData) < 2500
if (!includeIndividuals) { if (!includeIndividuals) {
individualProjections <- NULL individualProjections <- NULL
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment