plot

Equivolume financial chart in Matlab

Can't find anywhere a Matlab code to plot Equivolume bars, does anybody knows how to? http://www.armsinsider.com/education/armsonthemarket/equiv_chart.asp Thanks, Alberto ...

R How to adjust only size of y axis labels

Hi, how can I adjust only the size of Y-axis labels in R? I know that cex.axis alters the size of the axis labels but it affects ONLY the x-axis...why? and how can I adjust the y axis ? any ideas? Thanks!! ...

R, change the spacing of tick marks on the axis of a plot?

Hello How can I change the spacing of tick marks on the axis of a plot? What parameters should I use with base plot or with rgl? cheers ...

R: 4D plot, x, y, z, colours

Hello Could you give me an example on how to use rgl to plot 3 variables at the axes x, y and z and a fourth one with different colours? thanks ...

Is it possible to rotate a plot in R (base graphics) ?

I searched for this and found that with {grid} there are ways to rotate an image, and that for some plots you can play with their rotation (for example plot(x,y) instead of plot(y,x)). However, I want to know if there is a generic method to rotate a plot in R (one that would work for ANY plot generated in base graphics) ? ...

How can I change the edge line color when using the 'fill' function in MATLAB?

I'm writing code in which I use MATLAB's fill command to plot 2D shapes. I can specify the fill color of the shape. However, the border line color is always black. I want the border line color the same as the fill color. How can I also specify the border line color? ...

How can I plot a 1-D plot in R?

I have a vector of integers, e.g.: 2,8,11,19. I would like to plot a line of length e.g. 20 then plot a dot for each value that exist in the list (at some constant height), so I get something like this: -+-----+--+-------+- ...

Aligning plots + legends in Matlab in a single figure

I'm trying to plot out readings from a device I'm testing, I only need one legend per figure, and there are 3 graphs per figure. I'm giving the first graph a legend with the 'BestOutside' flag. Unfortunately, when i plot the other two graphs they don't line up with the first graph, and partially hide the legend. How do I make sure the ...

ggplot2: Use options for multiple plots

I would like to create 10 plots that have different data, but the same optical appearance. As an example, I’d like to change the colour of the gridline for each plot. This could be done by adding + opts(panel.grid.major = theme_line(colour = "white") to each plot definition. However, when I now decide to change background colour to l...

How can I display empirical pdf of my 100x1 vector data in Matlab?

I have a data which is 100x1 vector. How can I display its empirical pdf in Matlab? Also, if I want to compare the pdf of three vectors on the same graph, then how to do that? Right now I am using pdfplot.m file to plot my empirical pdf, however when I want to compare the 3 distributions by using 'hold on', then firstly its not working ...

Boxplot in R showing the mean (again)

I saw http://stackoverflow.com/questions/2492947/boxplot-in-r-showing-the-mean I'm interested in the ggplot solution. But what I am plotting are averages already so I don't want to do an average of an average. I do have the true mean stored in TrueAvgCPC. Here is what I tried, but it's not working: p <- qplot(Mydf$Network,Mydf$Avg.CPC...

ggplot2 plotmatrix - changing text labels

I'm using the plotmatrix function in ggplot2 (ggplot2_0.8.8) and would like to override the column names displayed from my dataframe, e.g. plotmatrix(mtcars) + opts(strip.text.x = theme_text(size=20)) I can alter the properties of strip.text.x and strip.text.y with opts, but where can I change the text itself e.g. I would like "mpg" r...

How to add arrows to line plots in Matlab?

I would like to add arrows to a plot of a line in Matlab to illustrate flow. The arrows would ideally be on the line pointing in the direction of the line. Is this possible? ...

Color schemes in R?

Does R have color palettes? In other words, I am looking for an array of 6 or so color names that go well together in a graph or plot; maybe there are some predefined schemes like that? ...

How to have ggplot histogram bins follow boxplot breaks

So far I have this: hist <- ggplot(Mydf, aes(x=Mydf$Avg.CPC)) breaks <- c(min(Mydf$Avg.CPC), median(Mydf$Avg.CPC), max(Mydf$Avg.CPC)) h <- hist + geom_bar(binwidth = 0.025, colour = "black", breaks = breaks) print(h) I get an error. It doesn't like having different widths. I would also like to have the Q1 and Q3 quartiles as breaks wh...

Python drawing cumulative plot (matplotlib)

Hi, I have not used matplotlib, but looks like it is main library for drawing plots. I want to draw CPU usage plot. I have background processes each minute making record (date, min_load, avg_load, max_load). date could be timestamp or nice formatted date. I want to draw diagram which show min_load, avg_load and max_load on the same plo...

calling plots from R into Java application

Hi guys I want to ask, if there is anybody who is succesfully working with JRI and rJava? I want to put some graphs, plots made in R into my Java application, but without success. Can anybody provide working example. Here is what I found, but its not working. Thank you import org.rosuda.JRI.REXP; import org.rosuda.JRI.Rengine; /** * @a...

Plot multiple functions in different intervals (Mathematica)

Hi, I need some help in Mathematica. I'm trying to plot functions that are stored in lists like: list = {{3x,1,5},{2x^2,0,4}} I need get an output similar to if I inputted: Show[Plot[3x,{x,1,5}],Plot[2x^2,{x,0,4}]] But I am not quite sure how this is achieved? Thanks in advance ...

Mathematica plot, exclude endpoints?

Hi, Why does the following give me errors about dividing by 0? ParametricPlot[{1/Sin[t], t}, {t, 0, 3 Pi}, Exclusions -> Sin[t] == 0] Power::infy: Infinite expression 1/0 encountered. It does successfully exclude the points at Pi and 2 Pi, but not the points at 0 and 3 Pi. If I exclude the endpoints by changing the interval... Para...

Web based curve sketching API/app?

Hi, Are there any web services/apps for plotting curves? Something similar to the Google Chart API, but for general mathematical curves, e.g. x^2, the exponential function, maybe even functions of two variables, etc.. I am interested in either an API provider or an HTML5/Flash-based online tool. Thanks! ...