Exporting R to vector-based designed charts - r

I'm looking for ways to visualize data in vector-based images through R. Here are links to some examples of something I'm having designed:
https://dribbble.com/shots/2195053-The-Truth-About-B-zier-Graphs/attachments/405731
https://dribbble.com/shots/1728095-Line-Chart/attachments/278191
I understand there are some R libraries for SVG and other file types that permit export to higher quality designs, but haven't seen any tutorials or tools. Any direction is appreciated. I'm not even sure what steps would be necessary to dynamically generate charts like that through R.
Thank you.

Related

Pretty PIvot Table/Pivot Graph Equivalents in R

I've got a large data frame which I need to "slice and dice". I've done this before using Excel pivot tables and pivot graphs - quite easy - but I'd like to do it in R if I can, for the usual reasons (easier to repeat, audit trail, etc.).
Here's an example of what I did in Excel.
Can anyone give me any pointers please? ie suitable R packages for doing this sort of thing & producing high quality output. I'm mindful that the graph has two y-axes, which I believe is a bit of a no-no in ggplot2 for example, but absolutely necessary in this particular instance.
Thank you.

R Social Network Analysis/Data Manipulation Question: Reading in .edges, .circles, .egofeat, .feat, and .featnames files

So I'm working with a network dataset from Stanford's SNAP Datasets and "SNAP" has wrappers for Python and C++ but not R - however, the data is still usable since I believe it's a mix of CSV files.
I can actually read in the .edges file and form an igraph object but want to read in the other files, get the attributes & add those attributes to the igraph object for analysis. I'm just confused on how to work with the .circles, .egofeat, .feat, and .featnames files since the documentation on the dataset is very scarce. Hoping someone has worked with the dataset in R or even another language and has any pointers to get started.
Thank you!

Visualization of R-Workflow through Flowchart in Alteryx-Way

I'm wondering if there are any packages for R which help to visualize workflows/code in a way Alteryx does. I find the visualization of the workflows within Alteryx quite helpful, but manually dragging an dropping the tools onto the canvas and set the parameters just takes so much longer than just writing the code in R. Also some functionally within Alteryx is not yet sufficient and has to be implemented via the R/Python-Tool anyway.
During my search I found this post which goes into the same direction, but the suggested packages don't really match what I am looking for.
Best regards

Looking to save a 3D spectrograph generated by SeeWave as .STL or similar in R

I'm fairly new to R and was experimenting with the SeeWave package to generate different plots from audio files. I found the 3D spectrograph especially interesting and, since I have access to a 3D printer in lab, thought it would be neat to print some of them.
My problem isn't with generating the plots, that goes quite smoothly, but with saving them in some kind of useful format. I've seen some references to people creating interactive WebGL, but I'm looking to generate some sort of .stl or .obj file that can be cleaned up and printed.
Code looks something like this:
> library(seewave)
> library(tuneR)
> sound <- readWave("/...path.../bird_call.wav")
> spectro3D(sound, wl=1000, ovlp=85, zp=6, maga=8, palette=spectro.colors)
Which generates a nice image - see below.
But I'm lost as to how I can save this in a useful format. Is there some incredibly obvious answer I've somehow missed? Some way to send the output to WriteOBJ from the RGL package? Any help is much appreciated.
The spectro3D() function uses rgl to draw the image, so you can
just use rgl::writeOBJ("file.obj").

How to make interactive charts together with R language

I'm helping my friend make a website. He previously used R language to generate statistical charts. Now he want to generate some dynamic chart so that when users move mouse over certain part of the chart there will be some description/complementary information pops up for them to read. What kind of technology/tools/packages I can use for this purpose?
PS: I've explored some possible ways, yet none of them fits my needs. I've tried rggobi + ggobi. They can't coz they are not for web applications. iPlot can't do it coz it generates histogram only. I've thought about asking R produces some intermediate date which I can pass to some JavaScript packages like HighCharts. Yet, apparently R is much powerful than JS. R can generates some advanced type of charts which JS just can't do.
You should use R to generate the data and then export it in a format that a javascript framework for graphs can understand.
This way you could benefit from the advanced statistical analysis provided by R and the presentation layer of javascript.
Lots of solutions exist for this problem, but i've heard lots of good things about Raphael and its chart plugin, which you may want to investigate
The playwith package offers facilities to manipulate rgl graphics. A couple of links:
http://code.google.com/p/playwith/w/list
http://www.r-bloggers.com/playing-with-the-%E2%80%98playwith%E2%80%99-package/
Look at the sendplot package or the RSVGTipsDevice package.

Resources