[R] A Question About Plotting

Richard M. Heiberger
Sat, 24 Nov 2012 20:42:35 -0000

Marcus,

Best guess is one of those variables is a factor and you are thinking it is
numeric.

Please use
    dput(head(Jitirana))
and send the resulting exeutable statement.

Please control your email so that the lines are properly transmitted.
Your entire email came as one paragraph.

Please read the posting guide referenced in the trailer of all R-help
messages

Rich

On Sat, Nov 24, 2012 at 12:02 PM, Marcus Tullius <tullius@europe.com>
wrote:

> Hallo there, I've got a simple question concerning a plot attempt of
mine.
> I am trying to plot two variables using the following code: # Creating a
> Graph attach(Jitirana) plot(Sozialkapital, Migration)
> abline(lm(Migration~Sozialkapital)) title("Regression of Sozialkapital
on
> Migration") Simple thing, but the problem lies in the fact that I keep
> receiving a square plot depicting y on the left and the frequency on the
> right side of the square. Well, in the plot shown on the Quick-R page the
> frequency is on the left side and there is a line running right in the
> middle. Have anyone got an idea as to where "my" keeps cropping
up entirely
> different from the example on the Quick-R page? Thanks in advance. Marcus
> Tullius
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>

	[[alternative HTML version deleted]]