Am Stat
2006-Sep-04 23:42 UTC
[R] plot a new picture against an old one to see the difference between them
Hello, useR:, Suppose I have two plots made by using contour() function, say Cont1 and Cont2 respectively. They have slightly difference because of the two slightly different data I used. I want to see the difference between them so I want to plot Cont2 on Cont1, are there any methods to plot it without filling the frame of Cont1 totally of Cont2. I mean, how I can integreate the two plots together that they kind of have weighted colors? Thanks very much in Advance! Leon [[alternative HTML version deleted]]
Am Stat
2006-Sep-05 00:11 UTC
[R] plot a new picture against an old one to see the difference between them
Dear Roger, Thanks, that's really helpful, do you know how to deal with it if the two plots are generated by plot(), not by contour(). Best, Leon ----- Original Message ----- From: "roger koenker" <roger at ysidro.econ.uiuc.edu> To: "Am Stat" <amstat2006 at gmail.com> Sent: Monday, September 04, 2006 8:06 PM Subject: Re: [R] plot a new picture against an old one to see the difference between them> for the second call to contour use the argument add=TRUE. > > On Sep 4, 2006, at 6:42 PM, Am Stat wrote: > >> Hello, useR:, >> >> Suppose I have two plots made by using contour() function, say Cont1 and >> Cont2 respectively. >> >> They have slightly difference because of the two slightly different data >> I used. >> >> I want to see the difference between them so I want to plot Cont2 on >> Cont1, are there any methods to plot it without filling the frame of >> Cont1 totally of Cont2. >> I mean, how I can integreate the two plots together that they kind of >> have weighted colors? >> >> Thanks very much in Advance! >> >> Leon >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help at stat.math.ethz.ch 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. >
Hi R users: How can I have several subscript number with a comma in a plot. I would like to have the LaTeX equivalent of x_{i,j}. I try: plot(1:10,1:10,type="n") text(5,5,expression(x[i,j])) but it doesn?t work. Thank you for your help.
Try: text(5,5,expression(x[i * "," * j])) On 9/4/06, Kenneth Cabrera <krcabrer at une.net.co> wrote:> Hi R users: > > How can I have several subscript number with a comma in a plot. > > I would like to have the LaTeX equivalent of > > x_{i,j}. > > I try: > > plot(1:10,1:10,type="n") > text(5,5,expression(x[i,j])) > > but it doesn?t work. > > Thank you for your help. > > ______________________________________________ > R-help at stat.math.ethz.ch 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. >