similar to: R plot

Displaying 20 results from an estimated 20000 matches similar to: "R plot"

2007 Jun 26
4
Looking for parallel functionality between Matlab and R
I'm slowly moving my statistical analysis from Matlab to R, and find myself missing two features: a) How do I mimic Matlab's 'hold on'? (I want to show several plots together, when I type two plots one after the other the second overwrites the first) b) How do I mimic Matlab's 'axis'? (after drawing my plots I want to zoom on specific parts- for example, x=0:5,
2010 Oct 26
5
Zoom in in a plot
in a simple plot. When i do plot is it possible to zoom in or out or this is not possible at all? Best Regards Alex [[alternative HTML version deleted]]
2007 Nov 21
2
Changing axis scale
Hello R users, Is it possible after making a plot(x,y) to change axis scale? For example : I have a range of 0 to 3000 in my y-axis and I want to make a zoom between 2000 and 3000. Thanks for any help. -- View this message in context: http://www.nabble.com/Changing-axis-scale-tf4850633.html#a13878705 Sent from the R help mailing list archive at Nabble.com.
2008 Oct 13
1
Blowing up portions of a graph
Hi, I have a really large graph and would like to zoom in on portions of the graph and post them as blocks below the graph.Is there an add on package to do this? -- Rajesh.J ------------------------------------------------------------ "I skate to where the puck is going to be, not where it has been." - Wayne Gretzky -------------------------------------------------------------
2010 Aug 31
4
How to Adaptively Set Up the Coordinate Range of Multiple Graphs in One Figure
Hi, R-Helpers, I would like to ask about multiple graphs in one figure. I tried to execute the following codes. xlim <- c(1,100) ylim <- c(1,4) plot(NA, xlim=xlim, ylim=ylim) > x <- c(1:100) for(j in seq(1,10,by=1)) { y <- j*x^2+log(j) lines(x, y) } In the above codes, I had to arbitrarily set up the coordinate range of the figure in advance before
2011 Apr 11
1
Zoom on simple.violinplot
Hello, I am using the function simple.violinplot from the package UsingR. I have some outliers in my dataset so that the distribution has very long tails. As a result, the y-axis of the output of simple.violinplot extends to very large values. I would like to zoom on the y-axis with a command such as ylim=c(a,b), as in boxplot(x,ylim=c(a,b)). However, doing simple.violinplot(x,ylim=c(a,b)) does
2012 Dec 28
3
Any simple way to make this happen?
Hi, The data is x <- c(4,3,5); I need to translate it to y <- c(1,2,3,4,1,2,3,1,2,3,4,5); i.e. for each number in x, we need to generate 1:x and put it in y. The program need to evaluate this type of calculation for millions of times in simulation. Is there any elegant way to make this happen without iteration? Many thanks!! Best, Haoda [[alternative HTML version deleted]]
2011 Dec 01
3
Change the limits of a plot "a posteriori"
Hi all How can I change the limits (xlim or ylim) in a plot that has been already created? For example, consider this naive example curve(dbeta(x,2,4)) curve(dbeta(x,8,13),add=T,col=2) When adding the second curve, it goes off the original limits computed by R for the first graph, which are roughly, c(0,2.1) I know two obvious solutions for this, which are: 1) passing a sufficiently large
2007 Mar 07
2
Multi-line plots with matrices in R
Hello all, I'm a new user of R, experienced with Octave/MATLAB and therefore struggling a bit with the new syntax. One of the easy things in Octave or MATLAB is to plot multiple lines or sets of points by using a matrix where either the columns or the rows contain the y-values to be plotted. Both packages automatically give each line/points their own unique colour, character etc. I'm
2009 Jul 14
2
How do I know where is R? - VB Programming
Dear all - Is there anyone know how to let VB or C# know where I install R automatically(i.e. auto detect R directory)? Many thanks! Best, Haoda
2010 Dec 12
1
R Plots for Recurrent Events - Suggestions are needed
Hi, I am wondering if there is a simple way to plot MCF(mean cumulative function) for recurrent events in R? MCF (http://www.weibull.com/hotwire/issue57/relbasics57.htm) And do you have some other recommendation in visualize recurrent events? I did some research online. Some people use ggplot2 to plot MCF, but it requires some additional coding. http://user2010.org/slides/Shentu.pdf Your help
2004 Jun 04
2
Plot documentation; Axis documentation
Why when I do a "help(plot)" do I not see anything about parameters such as xlim or ylim? As someone new to R, finding that xlim and ylim even existed wasn't all that easy. Even help.search("xlim") shows nothing once I know xlim exists. I'd like to change the default axes but "help(axis)" isn't that informative about changing the frequency of ticks on
2008 Dec 20
1
Help in Lattice!
Hi - How can I add different notes in different panels? My data looks like ID Dose Visit Value 1 1 0 0.5 -6.5802e-02 2 1 0 1.0 2.4085e-01 3 1 0 1.5 -2.2907e-01 4 1 0 2.0 2.4074e-01 ... ... ... ... ... 270 45 30 3.0 -8.1316e-01 271 46 30 0.5 -2.0786e-01 272 46 30 1.0 -2.9336e-01 273 46 30 1.5 -5.5657e-01 274 46 30 2.0 -2.1659e-01
2009 Jan 04
1
Lattice xyplot help please.
Hi - I am not R expert and I would appreciate your time if you can help me about my xyplot question. I would like to add text (p-value) in a 4 panels xyplot. I thought panel = function{} should work but I am not sure where I did it wrong. The error message from the following code is "Argument subscripts is missing with no default values" xyplot(GLG ~ PD | factor(TRT) , groups =
2005 Jul 13
3
How to use the function "plot" as Matlab?
Hello, How to use the function plot to produce graphs as Matlab? example in Matlab: a = [1,2,5,3,6,8,1,7]; b = [1,7,2,9,2,3,4,5]; plot(a,'b') hold plot(b,'r') How to make the same in R-package ? I am trying something thus: a <- c(1,2,5,3,6,8,1,7) c(1,7,2,9,2,3,4,5) -> b a;b plot(a,t="l",col="blue") plot(b,t="l",col="red")
2005 Oct 28
2
line vector plots
Hi, I'm looking for the way to make vector plot over a time line. This plot, similar to the "feather plot" in Matlab, is a line in which every thick (a time value) one vector is drawn with its length proportional to one variable (wind speed, for example) and its direction to another (wind direction, for example). Any ideas? Thanks, EKS -- ---------------------------- Eduardo
2006 Jun 02
2
plot with different color
Hi how can I plot a series of number as a line, but with lines above a threshould as one color, and with lines below the threshold as another color. for example, a numeric vector: rnorm(1:100), and plot these numbers in the original order, but lines above the horizontal line at 0 are in red, and lines below in blue? Thanks
2009 Oct 27
4
automatically adjusting axis limits
Dear R users, I am a newbie. Just switched from MATLAB. So thanks a lot for your patience. I have 50000 spectra collected in field. Each spectra has two columns : Wavelength (56) and the actual measurement. Each measurement came in a different .txt file on disk (50000 files in total). I wrote a script that reads every spectra in a for loop and constructs two variables : Wavelength (56) and
2006 May 24
3
Regression line limited by the rage of values
Hi In R, using plot(x,y) followed by abline(lm(y~x)) produces a graph with a regression line spanning the whole plot . This means that the line extends beyond the swarm of data points to the defined of default plot region. With par(xpd=T) it will span the entire figure region. But how can I limit a regression line to the data range, i.e between (xmin,ymin) and (xmax,ymax)? Sorry for
2009 Jan 19
2
plotting arrows with different colors and varying head size
Dear list, I would like to plot arrows with different colors according to arrow length, and also (if possible) with head size proportional to arrow length. The idea is to make a quiver-like plot of matlab with wind speed data. So far, I´ve been able to use different colors, but I need to find a more efficient way to recode arrow length intervals into colors. On the contrary, I can't define