R interactive graphs for data manipulation - r

I need your advice about a project I'm gonna start on data manipulation. We own some meteorological stations acquiring data every 10 minutes. Now, we use an old data validation software that I want to update.
Recently I managed to build a web app with shiny and ggplot2 packages so we can plot or download (whole or subseted) our previously validated data sets. Now I would like to build a new app so we can plot non validated data and interactively perform validation.
Let's say we have temperature data showing usual values for a single day but with a completely wrong value (120 degrees). Is it possible to just click on that point and remove from the data set?
Googleing I read about iplots and rggobi packages but I am not sure if they fit my wishes. Please, could you point me to some packages, readings or examples so I can start my project?
Thanks in advance

I would recommend d3 (a javascript library) for building dynamic plots. Here is an example for destroying symbols. You would just need to add an onclick action to make it interactive.
rCharts can be used to interface between R and javascript. Here is an example with d3.
The nice thing about rCharts is that it can interface with many javascript libraries.

Related

Does Google store and use data used for googleVis visualisations?

I'd like to create some interactive charts using googleVis package in R but I am a bit hesitant as I am not sure if Google will store the data I want to visualize. I have read their terms and conditions [https://developers.google.com/terms/ ] (particularly the 'Content' section) and it seems to suggest that they can but I was never any good at legal jargon.
Does visualizing my data through the API mean I submitted 'content' to Google and they can subsequently store and use it?
If so, are there any alternatives i.e. r packages that can create interactive dashboards and motion charts?
https://google-developers.appspot.com/chart/interactive/docs/gallery/columnchart
Bottom of the page ->
Data policy
All code and data are processed and rendered in the browser. No data is sent to any server.
Not sure about googles policy on data, but here are some alternatives:
rCharts
Shiny
htmlwidgets

Knowledge Graph (Demo) UI using sigma.js?

Are there any beginner-friendly tutorials to display graphs in the way Knowledge graph has been done?
I have the data is JSON format presented from a graphdb
For eg:
The closest I have found so far is Gelphi. Which also can be integrated with unity to produce a 3d Graph like this one https://www.youtube.com/watch?v=h_arRCf73Kg.
Then there is https://cayley.io/
https://n0where.net/opengraphiti-data-visualization-engine/
There is also https://www.maana.io/knowledge-platform/platform-capabilities/#maana-knowledge-graph . However, i have not tried to use/download their platform.
https://en.wikipedia.org/wiki/Force-directed_graph_drawing
Finally, I am working myself on learning unity to build a simple GUI which a user can identify nodes and edges and entities easily and move them around. So instead of just reading from a data base, also write to it through a UI.

How to create an interactive script in R to simplify/partly automate the data exploration part?

I would like to make an interactive menu in R - that interacts with me and then performs the selected tasks...I did some googling on interactive R / R user menu / etc. but nothing really helped.
I would like to present myself with the following interactive menu
clear all memory
load data
run regression model
run cluster model
Make a choice please (1,2,3 or 4):
based on the selection it would ask additional input (eg. after option 2, load data it would give all the files present in the data/in directory under my project prepended with a number so I could choose which file to load by simply entering 1,2,3, etc.
I do prepare different datasets to run with my script (for different segments or scenarios) and would like to quickly switch between these. eg. business operational plan Oct'12, consumer budget plan, etc. Also I would not like to reload my data over and over again..
I was thinking of building something 'pseudocode' like
print the menu
ask user for input
ifelse(menuinput==1, source(script1.r),
ifelse(menuinput== 2,source(script2.r),
ifelse(menuinput==3,source(script3.r),NA)))
But I am not sure if there are easier ways to do this.
Thanks,
Geoffrey
If you need to design a customized menu I suggest you take a look Shiny by the folks at Rstudio.
I am using it to create an analysis and data-manipulation GUI for my students. It is a work in progress but should give you an idea of some of the things that are possible. Code and installation instructions linked below:
https://github.com/mostly-harmless/radyant
To see it in action on a server:
http://vnijs.rady.ucsd.edu:3838/marketing/

Large Graph Visualization Library

I need to visualize a very large graph ( > 1 million ) in a website, the library should to receive a JSON and generate a png.
I've already tried graphviz with spfd but the waiting is too long, the user will not be able to interact with a GUI so Cytoscape or Gephi are not an option.
Another option could be maybe exporting a .dot to web, but I don't know how efficient this would be.
http://www.gnuplot.info/ and http://dygraphs.com/ are two of my favorite charting libraries for the web. Plotting a million data points I would probably use gnuplot. I would look at caching generated images as much as possible, perhaps even generating them in a batch rather than at the time of the request. I think you will run into performance issues trying to pass the data in via JSON and attempting to render the graph client side.

Does anyone know how to create a interactive graphs using flare or other visualisation classes?

Does anyone know of software or flex/flash/as3 source or visualisation software that could be used to make interactive graphs, where the user would enter a query that would pull data from a MySQL database and the user would build a sunburst or icicle graph by dragging and dropping items into a tree-like structure and they would be able to view the graph? i have attempted to use flare but my programming skills are pretty bad. So far from what i gather, flare only allows the graphing of defined datasets rather than allowing a user to modify the dataset and thus creating a new dataset.
Help?
This is far too big for the scope of a single question. You're going to need to write at least a few different pieces.
1.) Access to the database and a way to view datasets
2.) Control handlers to drag and drop datasets onto your chart object
3.) A chart object that can handle receiving dropped dataset items and render itself accordingly.
There are lots of good charting frameworks out there including Flare, Axiis, Flex charting, Fusion Charts, iLog Elixir. I'm not sure what you're trying to do but any one of those should be able to serve as your charting piece.
We worked on a project that used Flare and Flex. We had to provide the data to Flare in an XML format called GraphML, so we had code to convert the data into the required format in our C# backend, and then we passed it to Flex. There were naff all tutorials for it though, so took some time to figure it out.
There is a properly cool graphing tool (although its commercial) called Kapit. Check out their Diagrammer and Visualizer demos. It could be the case that its worth the spend.
But I agree with Mr Owen, theres some mad scope in that question:)

Resources