[R] Overlapping axis numbering and labels when using par(new=TRUE)?

MacQueen, Don macqueen1 at llnl.gov
Mon Sep 19 18:03:03 CEST 2016


Take a look at what

 plot(1:10, yaxt='n', xaxt='n')

does. Then study the help page for the par function, i.e.,

?par

See also

?axis

-Don
-- 
Don MacQueen

Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062





On 9/19/16, 8:50 AM, "R-help on behalf of mviljamaa"
<r-help-bounces at r-project.org on behalf of mviljamaa at kapsi.fi> wrote:

>I'm trying to plot two data sets on the same plot by using
>par(new=TRUE).
>
>However this results in the axis numbering and labels being plotted
>twice as seen in the following picture:
>
>http://i.imgur.com/4b1sNIc.png
>
>How can I get the axis numbering and labels to not overlap? I could also
>manage with plotting only the axis numbering and labels of the other
>plot, but not of the other.
>
>______________________________________________
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>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.



More information about the R-help mailing list