[R] Simple Graph
Hi Sir We use the function mpg() for ticks on axes. If we define more number of ticks then each tick is not labeled. How to label each tick on axes? Regards -- AMINA SHAHZADI Department of Statistics GC University Lahore, Pakistan. Email: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [[alternative HTML version deleted]] __ R-help@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.
[R] Simple Graph
Hi Sir If I want 10 ticks on x-axis and 10 ticks on y-axis then I use lab=c(10,10, 20) Here first 10 is for 10 ticks on x-axis, second 10 is for 10 ticks on y-axis and 20 is the lenght of x and y labels in characters. Now my question is that how I can label all 10 ticks on x-aixs and all 10 ticks on y-axis, because R leaves some ticks unlabeled. Thank You -- AMINA SHAHZADI Department of Statistics GC University Lahore, Pakistan. Email: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [[alternative HTML version deleted]] __ R-help@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.
Re: [R] Simple Graph
amna khan wrote: > Hi Sir > > We use the function mpg() for ticks on axes. If we define more number of > ticks then each tick is not labeled. How to label each tick on axes? What is mpg()? Which version of R? Which device? Which OS? I guess R cannot print more labels because the ticks are too dense, but there is no reproducible example in your message. PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Uwe Ligges > Regards > > __ R-help@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.
Re: [R] Simple Graph
amna khan wrote: > Hi Sir > > If I want 10 ticks on x-axis and 10 ticks on y-axis then I use > > lab=c(10,10, 20) > > Here first 10 is for 10 ticks on x-axis, second 10 is for 10 ticks on y-axis > and 20 is the lenght of x and y labels in characters. > > Now my question is that how I can label all 10 ticks on x-aixs and all 10 > ticks on y-axis, because R leaves some ticks unlabeled. So either make the font size smaller or rotate the labels... Uwe Ligges > Thank You __ R-help@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.
Re: [R] Simple Graph
amna khan wrote: > Hi Sir > > We use the function mpg() for ticks on axes. If we define more number of > ticks then each tick is not labeled. How to label each tick on axes? Hi Amina, The staxlab function in the plotrix package will display tick labels even if they would overlap on the standard axis display. Jim __ R-help@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.