Optimize Plotly Parallel plot

Viewed 1178

I am doing a parallel plot with plotly. It works, but get very time consuming when I apply it to huge data, because I am doing as many "trace" as markers.

How can I do it faster?

There is a reproducible example showing how I do it yet :

#Create data
markers=paste("markers",letters,sep="_")
data=data.frame(
    mark=rep(markers,3),
    map=c(rep(1,26) , rep(2,26) , rep(3,26)),
    pos=sample(seq(1:100) , 26*3)
    )

# Make the plot with Plotly
library(plotly)
plot_ly(data , x=map , y=pos, mode="markers+lines"  , group=mark)

And that is the result

My current plotly parallel plot

Thank you so much for your help !

2 Answers
Related