[R] Can R make an usual dotplot
Peter Ehlers
ehlers at ucalgary.ca
Thu Feb 18 07:31:47 CET 2010
I agree with Bill's advice, but if you want the easy way out,
try dotplot.mtb in package plotrix. Jim Lemon's done the job
for us.
-Peter Ehlers
On 2010-02-17 23:23, Bill.Venables at csiro.au wrote:
> R can't do anything.
>
> The question is whether you can do it with R. R puts you in the driver seat and if necessary gives you the mechanic's tookkit so that you can tinker underneath the bonnet if need be.
>
> If the function you like isn't quite there, have a look at the code and adjust it. It's unlikely you will really need to do this if the code has been properly written, but the option is always there, and you could learn a great deal from the experience.
>
> Alternatively if you really want minitab, well, as they say, you know where to find it.
>
>
> Bill Venables
> CSIRO/CMIS Cleveland Laboratories
>
>
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of aegea
> Sent: Thursday, 18 February 2010 2:47 PM
> To: r-help at r-project.org
> Subject: [R] Can R make an usual dotplot
>
>
> Dear R experts,
>
> Can R make an usual dotplot just like Minitab and other softwares?
>
> I have the following data, and can use dotchart to graph a dotplot:
>
>
> y=c(2.873438152e-01, -8.732895642e-01,
> 4.579001889e-01, 1.047395204e+00,
> 8.491182299e-02 , -1.938007105e+00,
> -1.273708343e+00, 9.848010588e-05,
> 7.238490734e-01, -1.490552717e+00)
>
> dotchart(y, xlab="10 observations from N(0,1)", xlim=c(-2, 4), pch=19)
>
>
> But I don't want the dots on different level of y-axis since y-axis has no
> meaning here.
> I also tried to load the package 'UsingR'
> DOTplot(y0)
> DOTplot(y1)
> These two functions can plot the graphs I need but I cannot label the
> x-axis, choose the type of the dot, limit the x-axis, etc. these features
> don't work in DOTplot.
>
> Is there a way I can get a dotplot in R which is look like the plot graphed
> by DOTplot but has the features other plots can have in R?
>
> Many many thanks!
More information about the R-help
mailing list