Re: [R] R plot window in screen of computer

2025-05-02 Thread Rui Barradas
Às 16:27 de 01/05/2025, Jorge Conrado Conforte escreveu: Hi, I'm starting use R. I always use the IDL and Python, to visualize my plot data and I use these commands: IDL window,xsize=500,ysize=500 Python plt.figure(figsize=(12,9)) I would like to know if R has a similar command to plot my

Re: [R] R plot split screen in uneven panels

2018-12-13 Thread Luigi Marongiu
Thank you, that worked good. I tried to read the help for layout/split.screen but I found it confusing. On Wed, Dec 12, 2018 at 5:51 PM Bert Gunter wrote: > > Incidentally, here is another way to do what (I think) you asked using > layout(): > > m <- matrix(c(1,2,2), nrow =1) > layout(m) > plot(1

Re: [R] R plot split screen in uneven panels

2018-12-13 Thread Martin Maechler
> Bert Gunter > on Wed, 12 Dec 2018 08:51:04 -0800 writes: > Incidentally, here is another way to do what (I think) you asked using > layout(): > m <- matrix(c(1,2,2), nrow =1) > layout(m) > plot(1:10, type = "p", main ="The First Plot") > plot(10:1, type = "l

Re: [R] R plot split screen in uneven panels

2018-12-12 Thread Bert Gunter
Incidentally, here is another way to do what (I think) you asked using layout(): m <- matrix(c(1,2,2), nrow =1) layout(m) plot(1:10, type = "p",main = "The First Plot") plot(10:1, type = "l", main ="The Second Plot") On my device, the plots use different size fonts, point sizes, etc. and so aesth

Re: [R] R plot split screen in uneven panels

2018-12-12 Thread Franklin Bretschneider
Dear Luigi Marongiu, Re: > Dear all, > I would like to draw two plots in the same device so that there is a > single row and two columns, with the first column being 1/3 of the > device's width. > I am creating a PNG object with width = 30 and height = 20 cm. > I know that I should use split.sc

Re: [R] R plot split screen in uneven panels

2018-12-12 Thread Bert Gunter
?layout Please read the Help file **carefully** and work through the **examples**. I cannot explain better than they. Here is code using layout() that I think does what you want: m <- matrix(1:2, nrow =1) layout(m, widths = c(1,2)) plot(1:10, type = "p",main = "The First Plot") plot(10:1, type = "

Re: [R] R plot-par(mfrow=c(x,y)) on multiple pages

2016-01-20 Thread Mohsen Jafarikia
Dear Jim, Your wild guess was a good guess :=) Thanks to you and Sarah for your comments. Regards, Mohsen On Wed, Jan 20, 2016 at 6:08 PM, Jim Lemon wrote: > Hi Mohsen, > I'll have a wild guess at this. I suspect that you have either calculated a > value for the ylim= argument or used explici

Re: [R] R plot-par(mfrow=c(x,y)) on multiple pages

2016-01-20 Thread Jim Lemon
Hi Mohsen, I'll have a wild guess at this. I suspect that you have either calculated a value for the ylim= argument or used explicit values for ylim= in the first plot, then propagated the error by copying and pasting. Jim On Thu, Jan 21, 2016 at 8:56 AM, Mohsen Jafarikia wrote: > Thanks very m

Re: [R] R plot-par(mfrow=c(x,y)) on multiple pages

2016-01-20 Thread Sarah Goslee
On Wed, Jan 20, 2016 at 4:56 PM, Mohsen Jafarikia wrote: > Thanks very much for the comment. > > I was also wondering why all the y-axis on all 12 plots are similar to > the first plot. I have 12 plots and scale of the values for these > plots are different. It seems R is using the x-axis for each

Re: [R] R plot-par(mfrow=c(x,y)) on multiple pages

2016-01-20 Thread Mohsen Jafarikia
Thanks very much for the comment. I was also wondering why all the y-axis on all 12 plots are similar to the first plot. I have 12 plots and scale of the values for these plots are different. It seems R is using the x-axis for each individual plot correctly but y-axis is the same for all 12 graphs

Re: [R] R plot-par(mfrow=c(x,y)) on multiple pages

2016-01-20 Thread Sarah Goslee
Use a device like pdf() or postscript() that supports multiple pages. Or start a new default device with dev.new() so you can see two figures simultaneously. Sarah On Wed, Jan 20, 2016 at 3:37 PM, Mohsen Jafarikia wrote: > Hello everyone: > > I have 12 plots that I am using par(mfrow=c(3,2)) to

Re: [R] R - PLOT - X-AXIS - DECIMALS

2014-11-20 Thread PIKAL Petr
nces@r- > project.org] On Behalf Of statup r > Sent: Thursday, November 20, 2014 7:33 AM > To: MacQueen, Don > Cc: r-help > Subject: Re: [R] R - PLOT - X-AXIS - DECIMALS > > this got fixed when I added 3 more rows to my existing test.csv file, > i.e. > new file got b

Re: [R] R - PLOT - X-AXIS - DECIMALS

2014-11-19 Thread statup r
this got fixed when I added 3 more rows to my existing test.csv file, i.e. new file got below data, with additional 3 rows: year sale 2001 100 2002 200 2003 300 2004 400 2005 500 What's the secret behind 5 rows , i mean is there any link between plot chart and 5 valu

Re: [R] R - PLOT - X-AXIS - DECIMALS

2014-11-19 Thread MacQueen, Don
My guess is that perhaps plot(aaa$year, aaa$sale) will produce something closer to what was expected. -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 11/19/14, 8:26 AM, "Sarah Goslee" wrote: >Hi, > >Since you didn't provid

Re: [R] R - PLOT - X-AXIS - DECIMALS

2014-11-19 Thread Sarah Goslee
Hi, Since you didn't provide a reproducible example, we have no way of knowing. http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example But if I were you, I'd start with str(aaa) because my first guess is that your data import did not work as you expected. On Wed,

Re: [R] R plot type

2014-02-21 Thread Rui Barradas
Hello, The answer is yes, it is possible. I don't know how to plot a curved arrow but the rest should be possible to do using ?plot.default ?lines ?text And please, post to R-Help, the odds of you getting more and better answers are greater. Hope this helps, Rui Barradas Em 21-02-2014 20

Re: [R] R plot

2013-08-06 Thread Guanrao Chen
Try extract the individual frames first ... Thanks, Guanrao http://www.foundyo.com From: Mª Teresa Martinez Soriano To: "r-help@r-project.org" Sent: Tuesday, August 6, 2013 3:43 AM Subject: [R] R plot Hi to everyone, first of all, thanks hor this excellen

Re: [R] R plot

2013-08-06 Thread Jose Iparraguirre
Hola Maria Teresa! I'd need some data to fully understand your problem, but as far as I can tell you are overdoing things. Again, without the data I can't help you but I'd use the ggplot2 package and forget about splitting the data into vectors and thus creating additional objects which look re

Re: [R] R plot like candlestick

2013-01-29 Thread John Kane
I have not had a change to look at the code but this appears to use ggplot2 to do something like what you want. It may be of some use http://www.perdomocore.com/2012/using-ggplot-to-make-candlestick-charts-alpha/ . The google search terms, ggplot2 candlestick, showed this and a couple of othe

Re: [R] R plot like candlestick

2013-01-29 Thread Denis Francisci
Wonderful! Thank you Eik! I thought there was a specific package or plot to get my purpose, but your idea solves perfectly my problem. Maybe I could try to write a simple R function using your suggest, just to make fast my work. If I can get a result, I'll announce it in this list. Thank you very m

Re: [R] R plot like candlestick

2013-01-29 Thread Eik Vettorazzi
Hi Denis, there is no "if", only "how" in R ;) how about this: rmail2<-read.table(textConnection("item, min, int_1, int_2, max a, 2.5, 3, 4, 5.5 b, 2, 3.5, 4, 4.5 c, 3.5, 4, 4.5, 5"),header=T,sep=",") with(rmail2,symbols(item, (int_1+ int_2)/2, boxplots=cbind(.25, int_2-int_1, int_1-min,max-int_2

Re: [R] r-plot help-it prints outside frame

2012-10-10 Thread Jessica Streicher
You could set xlim and slim when using plot() plot(vector,xlab="Period",ylab="Values",xlim=range(0,length(vector)+1),ylim=range(vector,est_vector,forecast)) i think - you forgot to provide data for the vectors :) On 10.10.2012, at 11:31, piranha piranha wrote: > Hello, > > i have been doing br

Re: [R] r-plot help-it prints outside frame

2012-10-10 Thread Duncan Murdoch
On 12-10-10 5:31 AM, piranha piranha wrote: Hello, i have been doing browns exponential smooting for myself and have a little trouble with plotting values: par(xpd=TRUE) The line above says "allow plotting outside the frame". plot(vector,xlab="Period",ylab="Values") legend(ma

Re: [R] [R ]Plot a colored rectangle under the points of a graph

2011-10-08 Thread Heverkuhn Heverkuhn
Thank you, you are right my execution was completly wrong. it was plot(0,type="n"); rect(4,0,6,11,col=5); plot(x,y). Thanks for your help :) H. On Sat, Oct 8, 2011 at 12:43 PM, Robert Baer wrote: > This is what you tried? What doesn't work? > x=1:10 > y=1:10 > > plot(x,y, type='n') > rect(4,0,

Re: [R] [R ]Plot a colored rectangle under the points of a graph

2011-10-08 Thread Robert Baer
This is what you tried? What doesn't work? x=1:10 y=1:10 plot(x,y, type='n') rect(4,0,6,11, col=5) points(x,y) ___ Hello everyone, if I have: x=1:10 y=1:10 plot(x,y) and I plot a rectangle rect(4,0,6,11, col=5) it covers the points of the graph. Is there a way to draw the rectangle

Re: [R] [R ]Plot a colored rectangle under the points of a graph

2011-10-08 Thread R. Michael Weylandt
My guess is that your intuition was correct, but you probably executed it incorrectly. Plot (usually) calls a new plotting window; if you want to add to a window that's already open, you need to use a specialized command like points, lines, etc. Try this x <- y <- 1:10 plot(x,y,type="n"); rect(4

Re: [R] R plot : hat symbol and cex.lab

2011-04-26 Thread Duncan Murdoch
On 26/04/2011 8:01 AM, BMichel wrote: Hello, Does anybody know how to make the "hat" correctly appears in the label of this plot (with this cex.lab coefficient) : plot(1:10, 1:10,ylab = expression(hat(h)),cex.lab = 1.5) The "hat" does not completely appear on my graph, it is like cut on the le

Re: [R] R plot : hat symbol and cex.lab

2011-04-26 Thread Richard M. Heiberger
plot(1:10, 1:10, ylab="") mtext(side=2, expression(hat(h)),cex = 1.5, line=2.5) Rich On Tue, Apr 26, 2011 at 7:45 AM, BMichel wrote: > Hello, > > Does anybody know how to make the "hat" correctly appears in the label of > this plot (with this cex.lab coefficient) : > > plot(1:10, 1:10,ylab = expr

Re: [R] r-plot 2nd attempt

2009-05-27 Thread Gavin Simpson
On Wed, 2009-05-27 at 06:06 -0700, durden10 wrote: > First of all, thanks a lot for your quick & helpful comments! > > I have come down to this: > > Win<- c(-0.005276404, 0.081894394, -0.073461539, 0.184371967, > 0.133189670, -0.006239016, -0.063616699, 0.196754234, 0.402148743, > 0.10

Re: [R] r-plot

2009-05-27 Thread Jim Lemon
durden10 wrote: Dear R-community I have a grueling problem which appears to be impossible to solve: I want to make a simple plot, here is my code: http://gist.github.com/118550 Unfortunately, the annotation of both the x- and y-axis are not correct, as you can see in the following picture: http

Re: [R] r-plot

2009-05-27 Thread Richard . Cotton
> I want to make a simple plot, here is my code: http://gist.github.com/118550 > Unfortunately, the annotation of both the x- and y-axis are not correct, as > you can see in the following picture: > http://www.nabble.com/file/p23739356/plot.png > I am not an expert of R, so maybe someone can po

Re: [R] r-plot

2009-05-27 Thread Gavin Simpson
On Wed, 2009-05-27 at 02:52 -0700, durden10 wrote: > Dear R-community > > I have a grueling problem which appears to be impossible to solve: > I want to make a simple plot, here is my code: http://gist.github.com/118550 > Unfortunately, the annotation of both the x- and y-axis are not correct, as

Re: [R] R plot

2008-10-17 Thread Greg Snow
There are some functions that will do this in 1 step, like matplot if the the data is formatted properly. ggplot has already been mentioned as another approach. If you want to stick with base graphics, there is a zoomplot function in the TeachingDemos package that will rescale a plot (zoom in

Re: [R] R plot

2008-10-17 Thread Ryan
Use lattice or ggplot __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] R plot

2008-10-17 Thread hadley wickham
On Fri, Oct 17, 2008 at 4:31 AM, Ted Harding <[EMAIL PROTECTED]> wrote: > On 17-Oct-08 09:01:08, Benoit Boulinguiez wrote: >> Hi, >> Personally I always use xlim and ylim with the plot or points >> function like that: >> >> plot( X,Y,pch=16,col=2,cex.axis=1.5,cex.lab=1.5, >> xlim=c(0,1.05*max

Re: [R] R plot

2008-10-17 Thread Wacek Kusnierczyk
things work; but I have > to admit that I don't like it! > > Best wishes to all, > Ted. > > > >> -----Message d'origine- >> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> De >> la part de Wacek Kusnierczyk >> Envoyé : vendred

Re: [R] R plot

2008-10-17 Thread Ted Harding
rk; but I have to admit that I don't like it! Best wishes to all, Ted. > -Message d'origine- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > De > la part de Wacek Kusnierczyk > Envoyé : vendredi 17 octobre 2008 10:47 > À : Haoda Fu > Cc : R help > Objet : Re: [R]

Re: [R] R plot

2008-10-17 Thread Benoit Boulinguiez
ECTED] [mailto:[EMAIL PROTECTED] De la part de Wacek Kusnierczyk Envoyé : vendredi 17 octobre 2008 10:47 À : Haoda Fu Cc : R help Objet : Re: [R] R plot Haoda Fu wrote: > All - > > > When I plot something like > > a<-rnorm(5) > b<-rnorm(5) > plot(a,b,col = "red&

Re: [R] R plot

2008-10-17 Thread Wacek Kusnierczyk
Haoda Fu wrote: > All - > > > When I plot something like > > a<-rnorm(5) > b<-rnorm(5) > plot(a,b,col = "red") > points(10,-10) > > The last point is missing because it is out of > range of the first plot. > > I just try to switch from Matlab to R. In Matlab, > it always can automatic adjust the x

Re: [R] R plot as image data and another question

2008-03-18 Thread Bio7
In my case i use R by means of Rserve from my Java application. Since i`ve integrated the well known image analysis tool ImageJ i can send images to R and vice versa. This works well and is quite fast. My idea now was to get the plot information from R in the form of matrix data which i can transf

Re: [R] R plot as image data and another question

2008-03-18 Thread Prof Brian Ripley
On Tue, 18 Mar 2008, Bio7 wrote: > > Dear R developers, > > i would like to get the plots of R in the form of matrix data which i want > to transfer > to an external image software. Is it generally possible to get the plot > information in form of > data values? > > Another question concerns about