Fill under the curve with ggplot graphs

I would like to create a graph with the normal function from x=-2 to x=2 filled under the curve from -2 to 0. I've tried with ggplot2 qplot(c(-2, 2), stat="function", fun=dnorm, geom="line") + + geom_area(aes(xlim=c(-2,0)),stat="f

Can I do a data visualization with Drupal?

Basically i want it to import data from a SQL database and Display it as graphs. Having said that i also want it to be dynamic,responsive as in the users should have filtering options. Any leads would be definitely helpful. Please note that i am just

RGB equivalent of the image () function in R?

I am running a simulation that competes two types of agents against each other. Let's call these agents "red" and "blue." There are three possible outcomes: red wins, blue wins, or everyone loses. Let's say, also, that the system depen

How to draw a matrix of variable interactions

My problem is simple. Suppose I have data with one response variable (y), and three explanatory variables (x1, x2, x3)... # Example data set.seed(123) <- data.frame(y = c(seq(1,5,length=20)+rnorm(20)), x1 = c(seq(5,1,length=20)+rnorm(20)), x2

Creating a football data visualization in Processing?

I was wondering if anyone knows where I can get this kind of data to work on a data visualization of it. I'm looking to take quite a few countries from around the world and map the number of times they have won the world cup over a hundred years. Is

ggplot2 - boxplot several data.frames while remaining in order

I apologize if this is more for SO instead of CV. I am attempting to include a second boxplot into an existing boxplot that is ordered by the mean of the values plotted. When I include the boxplot from the second data.frame (representing a control sa

Draw a function in R

I'm doing QDA on my data and need to plot a decision boundary in R ,or MATLAB, which looks like the function below. 0.651 - 0.728(x_1) - 0.552(x_2) - 0.006(x_1 * x_2) - 0.071(x_1)^2 +.170 (x_2)^2 = 0 Can anyone help me? I've been search the interwebs

Hexbin: apply the function for each bin

I would like to build the hexbin plot where for every bin is the "ratio between class 1 and class2 points falling into this bin" is plotted (either log or not). x <- rnorm(10000) y <- rnorm(10000) h <- hexbin(x,y) plot(h) l <- as.fac

Columnstacked histograms in gnuplot from multiple files

I'm trying to use gnuplot to view some profiling data; I have several files, each of the following format: file_runXX.dat: elapsed time, stage elapsed time, stage For example: 0 foo 1 step_1 1.5 step_2 2.3 step_3 and 0 bar 0.75 step_1 1.3 step_2 2.1

3D plot from X, Y, Z Data, Excel or other tools

I have data that looks like this: 1000 13 75.2 1000 21 79.21 1000 29 80.02 5000 29 87.9 5000 37 88.54 5000 45 88.56 10000 29 90.11 10000 37 90.79 10000 45 90.87 I want to use the first column as x axis labels, the second column as y axis labels and t

Overlaid and non-stacked column chart in Excel

I want to layer (superimpose) one column graph on another in Excel. So it would be like a stacked column graph, except that each column for a given category on the x-axis would have its origin at 0 on the y-axis. My data are before and after scores.

Highcharts does not display data at certain zoom levels

I'm using Highcharts/Highstock to plot a fairly large amount of data (~10,000 points). The data consists of Date objects on the X axis and floats on the Y, formatted as such: [[(date), 1.728], [(date), 0.346], ...]. The dates are always 1 hour apart

An example of a simple point cloud in D3.js?

I'm looking for an example of how to draw a scatterplot in D3.js. I haven't been able to find a simple example by looking through the official D3.js examples (impressive though they are). I just want to know how to: draw and label the x- and y-axes d

OpenGL picking from a big set

I'm trying to, in JOGL, pick from a large set of rendered quads (several thousands). Does anyone have any recommendations? To give you more detail, I'm plotting a large set of data as billboards with procedurally created textures. I've seen this post

Geom_text on a mosaic facet_gridded

I am trying to add geom_text labels to my mosaic plot below: that I generated using ggplot2 with the code below: tsc.p1 <- tsc.p + geom_rect(colour = I("grey")) + facet_grid(helmet~.) + geom_text(aes(x = c(9.0, 22.0, 33.0, 46.0, 72.0, 98.0),

What is a simple language to use to create graphics?

What is a rapid coding language or platform for quickly creating data visualization images in 2d and 3d? I want to rapidly code up visualizations like this: I already know how to code OpenGL and DirectX, but those e

Two LineSeries with the same Y axis in the WPF Toolkit charts

I want to do the following with the WPF toolkit charts: I have two line series that should use the same y axis (i.e I want them both to be on the same scale). I could give each of them the same axis definition so they would overlap (and then have one

Graphics library that offers a linked linear chart with points

I'm trying to plot data from several entities over time. Each entity will have its own line, so there will be several lines. Each line will be connected, but it's important that dots are drawn to represent data. I'm aware of the linked bar chart, but

Graphboard labels

I'm trying to draw a graph of the dependencies between C header files using graphviz. Basically, what I'm doing is log all the #include that appear and the condition (#if conditions I mean). If a file includes another one, it becomes its father in th

Forms of the State of the United States for Office

I want to create visuals along the lines of CNN's "red-state, blue-state" shadings of the states in the U.S. for my project. I'm planning to do something fancier than just shading the state's shape in a color. Are there open source libraries of

Scatter in C ++

What is the best way to graph scatter plots in C++? Do you write data to a file and use another tool? Is there a library like matplotlib in Python?I always write out data and then using gnuplot to create my graphs. It is by far the best way I have fo