Re: [R] Plot MArginal distribution in the correct place

2017-06-18 Thread Jim Lemon
As you have categorized the original values, they are different from the originals. You could include the categories like this, with a bit of fiddling the margins and y limits for the right hand plot: x11(width=10) nf<-layout(matrix(c(1,1,1,1,2,2),1,6,byrow=TRUE)) par(mar=c(10,6,6,6)) matplot(Simu

Re: [R] Plot MArginal distribution in the correct place

2017-06-17 Thread Pedro páramo
Can you suggest a plot on the right side so that the right plot has the same units of left plot and reflect the counts of the number of time the values repeat, something like the empirical distribution? 2017-06-14 12:30 GMT+02:00 Jim Lemon : > Hi Pedro, > If you keep that same margins for the s

Re: [R] Plot MArginal distribution in the correct place

2017-06-14 Thread Pedro páramo
Please can you send me some orientation? Many thanks in advance. Only if posible one book o similar example to understand why it is not what I try. El 8 jun. 2017 7:50 PM, "Pedro páramo" escribió: > Many thanks Jim. > > What I,m trying to show with the fhist plot is the empirical distribution

Re: [R] Plot MArginal distribution in the correct place

2017-06-14 Thread Jim Lemon
Hi Pedro, If you keep that same margins for the second plot: par(mar=c(10,0,6,6)) barplot(fhist$counts,axes=FALSE, space=0,horiz=TRUE,col="lightgray") it looks reasonably well aligned to me. Because you are plotting the counts of the values in Simulation, the ordinate (vertical axis) of the bar p

Re: [R] Plot MArginal distribution in the correct place

2017-06-08 Thread Pedro páramo
Many thanks Jim. What I,m trying to show with the fhist plot is the empirical distribution of the values of the left plot simulation. You say: However, I don't think that this plot illustrates quite what you think it does. Can you give me a clue to try to illustrate better if it is not showing w

Re: [R] Plot MArginal distribution in the correct place

2017-06-07 Thread Jim Lemon
Hi Pedro, As a one-off, you just shove the coordinates around a bit: par(mar=c(11,0,6,6)) barplot(fhist$counts,axes=FALSE, space=0,horiz=TRUE,col="lightgray", ylim=c(0,24)) However, I don't think that this plot illustrates quite what you think it does. Jim On Wed, Jun 7, 2017 at 4:01 PM, Pedr

Re: [R] Plot MArginal distribution in the correct place

2017-06-07 Thread Pedro páramo
Please, I'm trying to put the right plot higher and centered on the left values but I don't achive. I would appreciate so much your help El 6 jun. 2017 22:37, "Pedro páramo" escribió: > Hi all, > > I have this code, but the marginal distribution plot doesn´t appear > aligned with the left plot.

[R] Plot MArginal distribution in the correct place

2017-06-06 Thread Pedro páramo
Hi all, I have this code, but the marginal distribution plot doesn´t appear aligned with the left plot. I think could be something about layout or par() mar. The code was programmed by me time ago. Can anyone help me to get the marginal distribution on the center (more higher centered) id.txt