Interactive Parallel Coordinates with Multiple Colours
For my research project, I need a tool to visualise results from multi-objective optimisations. Below is one of my early attempts using base R and parcoord in the MASS package, I have no problem using them for publication. However, these charts are all static. For a practical decision support tool (something I am working on), I need the charts to be interactive so that users can adjust the range/thresholds in each parameter and narrow down the things to display in real time.Many thanks to Ken (timelyportfolio) who kindly pointed me to his code examples. Based on that, I developed a prototype version of the interactive parallel coordinates plot with multiple colours (as shown above). OK, the values in the chart are totally unrelated to my research - I just used the 'Theoph' dataset in R for testing purposes. Yet, this is a much needed exercise to see if I can use rCharts parallel coordinates for my research. The answer, of course, is YES. It also works with my customised colour palette too (using Bart Simpson this time)!
Here is the R code for the above chart:
Showing your rCharts on bl.ocks.org
In the process of making this plot, I also discovered how to display rCharts (d3, html or practically any code) on Mike Bostock's site "bl.ocks.org". If you haven't seen his site, do check this out. It is one of the coolest things on earth.I wanted to have a gallery like that too ... but I didn't know how. I used to think that Ramnath and Ken must have bought Mike a beer so that they can have their stuff hosted on bl.ocks.org (see bl.ocks.org/ramnathv and bl.ocks.org/timelyportfolio). I was very wrong, everyone with a GitHub account can do it. All you need are your imagination (and some gists). The site automatically pulls your gists and displays them as beautiful blocks gallery.
In order to display your cool rCharts on bl.ocks.org, you can either:
- publish the rCharts to gist using the '$publish' function (e.g. r1$publish('name.of.gist', host = 'gist') where r1 is the rCharts object)
- save the rCharts as a stand-alone HTML (e.g. r1$save('index.html', cdn = TRUE)) and then include it in a gist.
So here are the parallel coodinates plot as shown on bl.ocks.org ...
... and my gallery at bl.ocks.org/woobe
Latest on Colour Palette Generator
First, let me point you to Russell Dinnage's blog post. It is easily one of the finest R blog posts I've read so far. All these colours and graphs. Wow! It's yet another #RCanDoThat moment for me (so good it needs a hashtag).So many thanks to his effort and cool ideas, we continue to add more functions to the rPlotter package. It is also a great opportunity for us to better understand the pull/merge GitHub mechanism.
Thanks for sharing this content..
ReplyDeleteLeanpitch provides online training in Advanced Scrum Master during this lockdown period everyone can use it wisely.
Advanced Scrum Master training
Informative article,Great work
ReplyDeleteLeanpitch provides online training in Advanced Scrum Master during this lockdown period everyone can use it wisely.
Advanced Scrum Master training
Thanks for sharing this informative content , Great work
ReplyDeleteTo crack scrum master interview : Scrum Master Interview Questions
Thanks for sharing this informative content , Great work
ReplyDeleteLeanpitch provides online training in Advanced Scrum Master during this lockdown period everyone can use it wisely.
Advanced Scrum Master Training Online
Thanks for sharing this informative content , Great work
ReplyDeleteRead this PSM vs CSM blog from Leanpitch to get a better conclusion : PSM vs CSM
Thanks for sharing this informative content , Great work
ReplyDeleteTo crack Agile coach interview : Agile coach Interview Questions
Thanks for sharing this informative content , Great work
ReplyDeleteLeanpitch provides online certification in scrum master during this lockdown period everyone can use it wisely.
Scrum master certification
Thanks for sharing this informative content , Great work
ReplyDeleteLeanpitch provides online training in devops during this lockdown period everyone can use it wisely.
Devops Online Training
Thanks for sharing this.,
ReplyDeleteLeanpitch provides online training in Scrum Master during this lockdown period everyone can use it wisely.
Join Leanpitch 2 Days CSM Certification Workshop in different cities.
CSM training online
Thanks for sharing this.,
ReplyDeleteLeanpitch provides online training in Scrum Master during this lockdown period everyone can use it wisely.
Join Leanpitch 2 Days CSM Certification Workshop in different cities.
CSM online certification
ReplyDeleteThanks for sharing this informative content.,
Turient is an All-in-one platform for all our teaching needs. If Teaching is your passion ,enabling is ours
Read the Informative blog - 11 Free Teaching Tools for Online Teachers
11 Free Teaching Tools for Online Teachers
Free Teaching Tools
Really, this article is truly one of the best in the article with useful information. Very good work!.
ReplyDeleteData Science Training in Jaipur
Grate blog. It's very interesting to read...
ReplyDeleteManual-Testing-Training course at Edukators in Coimbatore
What an innovative and engaging project! Combining rCharts with parallel coordinates to visualize Simpsons data is a brilliant idea. The playful yet informative approach really brings data to life and makes it accessible and entertaining. The use of #rBlocks to modularize your code and keep things organized is also a smart move.
ReplyDeleteI’m curious—did you encounter any interesting insights or patterns from the Simpsons data using this visualization method? Looking forward to seeing more creative applications!
Digital Marketing Course In Hyderabad
What a creative mashup! Combining rCharts with Parcoords and the Simpsons is such a fun way to visualize data. Your examples make it clear how powerful parallel coordinates can be for exploring multidimensional datasets. I appreciate the humor and relatability of using Simpsons references, which adds an engaging layer to the technical content. It would be interesting to see more complex datasets applied to this visualization technique or even some tips on customizing the charts further. Thanks for sharing this entertaining and informative piece—it's a great resource for anyone looking to enhance their data visualization skills!
ReplyDeleteDigital Marketing Course In Hyderabad