plot

[R] Plot a legend outside of the plotting area in base graphics?

As the title says: How can I plot a legend outside the plotting area when using base graphics? I thought about fiddling around with layout and produce an empty plot to only contain the legend, but I would be interested in a way using just the base graph facilities and e.g., par(mar = ) to get some space on the right of the plot for the ...

Implementation of parallel coordinates?

I want to implement parallel coordinates for my muldimensional result. Does anyone have a good link to its implementation in matlab or R? Furthermore, are there any suggestions regarding the best tool to use for producing the parallel coordinates? ...

matlab: how to plot multidimensional array

Hello, Let's say I have 9 MxN black and white images that are in some way related to one another (i.e. time lapse of some event). What is a way that I can display all of these images on one surface plot? Assume the MxN matrices only contain 0's and 1's. Assume the images simply contain white lines on a black background (i.e. pixel valu...

Simple execution sequence for real time systems drawn in Java

Hello, I need to draw some execution sequences for some real time systems scheduled using rate monotonic algorithm. The drawing has to be done using Java and it has to be very basic. Do you a very simple way to do this drawing? Simpler than Graphics2D? Thanks a lot! The diagram I want to be as simple or even simpler as this one: ...

Plotting evolution of 2D vector in 3D as a ribbon in MATLAB

I would like to plot how the amplitude and orientation of a 2D vector evolves over time. To do this I would like to create a graph reminiscent of the canonical E & B field graphs you may recall from an introductory electricity and magnetism class. Specifically, I would like to connect my 2D vector points with a ribbon, so that they ...

R: Plotting a 3D surface from x, y, z

Hello imagine I have a 3 columns matrix x, y, z where z is a function of x and y. I know how to plot a "scatter plot" of these points with plot3d(x,y,z) But if I want a surface instead I must use other commands such as surface3d The problem is that it doesn't accept the same inputs as plot3d it seems to need a matrix with (nº elem...

R: Plot multiple lines on the same axis with the average in bold?

I have some data that looks like this: df <- data.frame(time=1:6, a=c(100, 90, 91, 92, 91, 91.5), b=c(99.9, 90.3, 90.9, 91.8, 92, 91.5), c=c(100.3, 88.5, 90.5, 91.5, 91, 91.3)) df <- data.frame(df, mean=apply(df[,2:4], 1, mean)) > df time a b c mean 1 1 100.0 99.9 100.3 100.06667 2 2 90.0 90.3 88.5 89.60000 3 ...

Draw more than one function curves in the same plot

A way to draw the curve corresponding to a given function is this: fun1 <- function(x) sin(cos(x)*exp(-x/2)) plot (fun1, -8, 5) How can I add another function's curve (e.g. fun2, which is also defined by its mathematical formula) in the same plot? ...

Matplotlib 2d polygone in 3d axes

Hi everybody, I'm using matplotlib to plot some data as 2d curves in a 3d axes. I use the ax=axes3d.Axes3D() to define my axes and ax.plot(x,y, zs='z') to plot my 2d curves in the 3d space. Now I want to add something that looks like what is on this page http://matplotlib.sourceforge.net/examples/mplot3d/polys3d_demo.html, but I want t...