À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
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
> 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
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
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
?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 = "
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
> 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
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
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
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.
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
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
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]
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&
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
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
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
41 matches
Mail list logo