Re: [R] how to draw paired mosaic plot?

2015-02-07 Thread meng
If both x and y are all character, paired scatter plot is a little bit strange I think. -- QQ: 1733768559 At 2015-02-06 23:52:34,Duncan Murdoch murdoch.dun...@gmail.com wrote: On 06/02/2015 6:46 AM, meng wrote: Hi all: If there are two numeric variable:x,y, and I can get paired

Re: [R] how to draw paired mosaic plot?

2015-02-07 Thread Jim Lemon
Hi meng, It's not too hard to get a mosaic plot of two character variables: x-sample(LETTERS[1:3],20,TRUE) y-sample(LETTERS[24:26],20,TRUE) mosaicplot(table(x,y)) If you could tell us how the above is not what you want, perhaps a better suggestion will appear. Jim On Sat, Feb 7, 2015 at 6:29

Re: [R] Plot residuals against standard normal distribution

2015-02-07 Thread Mike Miller
On Mon, 2 Feb 2015, Mikael Olai Milhøj wrote: I'm having trouble trying to plot the density of the residuals against the standard normal distribution N(0,1). (I'm trying to see if my residuals are well-behaved). I know hwo to calculate the standardized residuals (I guess that there may be a

[R] Superscript in legend without using expression function

2015-02-07 Thread jgui001
I am plotting three sets of data on a single graph, and doing around 100+ graphs. I can use the expression function to superscript the 2 but that seems to force me to manually put in the R squared values. Is there away around this? This code will show what it should look like this but with the 2

Re: [R] Plot residuals against standard normal distribution

2015-02-07 Thread Mike Miller
On Sat, 7 Feb 2015, Mike Miller wrote: res - residuals( model ) resStd - ( res - mean( res, na.rm=TRUE ) ) / sd( res, na.rm=TRUE ) Another issue is how to make the theoretical quantiles for the normal distribution. There are a few methods:

Re: [R] Superscript in legend without using expression function

2015-02-07 Thread Rolf Turner
On 08/02/15 10:57, jgui001 wrote: I am plotting three sets of data on a single graph, and doing around 100+ graphs. I can use the expression function to superscript the 2 but that seems to force me to manually put in the R squared values. Is there away around this? This code will show what it

Re: [R] how to draw paired mosaic plot?

2015-02-07 Thread meng
If there are many character variables,and I want to get the mosaic plot of every pair of each variable,how to do then? If the variables are numeric, I can use pairs to get paired scatter plot. But as to the character variables, how to get the paired mosaic plot? Many thanks. -- QQ:

Re: [R] Superscript in legend without using expression function

2015-02-07 Thread David Winsemius
On Feb 7, 2015, at 2:54 PM, Rolf Turner wrote: On 08/02/15 10:57, jgui001 wrote: I am plotting three sets of data on a single graph, and doing around 100+ graphs. I can use the expression function to superscript the 2 but that seems to force me to manually put in the R squared values. Is

Re: [R] how to draw paired mosaic plot?

2015-02-07 Thread Jim Lemon
Hi meng, A basic display of mosaic plots for all pairs of variables isn't too difficult, but you will probably want to make this a bit fancier. It only displays the unique plots, unlike the pairs plot. Keep in mind that many variables will mean many plots.