[R] dotPlot with diagonal

David L Carlson dcarlson at tamu.edu
Wed Oct 26 17:32:56 CEST 2011


Try again. There is no dotPlot() function in lattice and dotplot() does not take two separate rows so the example you gave us generates an error message if dotPlot is changed to dotplot.


----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Jörg Reuter
Sent: Wednesday, October 26, 2011 8:13 AM
To: Dennis Murphy
Cc: r-help at r-project.org
Subject: Re: [R] dotPlot with diagonal

Oh, sorry.
library(lattice)
(Seq <- matrix(c(1, 1, 6, 1, 2, 2, 5, 4, 3, 3, 4, 3,
 4, 4, 3, 2, 5, 5, 2, 5, 6, 6, 1, 6), ncol = 6))
dotPlot(Seq[1,], Seq[2,], main = "Sequenz 1 und
Sequenz 2", asp = 1)
Is there a way to draw a small diagonal, begin at (0/0) to (6/6)
(perhaps in red??) or must I use gimp? I have many dotPlots, so it is
fine if R can do this.


2011/10/26 Dennis Murphy <djmuser at gmail.com>:
> Let's see: there is a dotPlot() function in each of the following packages:
> BHH2, caret, mosaic, qualityTools
> Would you be kind enough to share which of these packages (if any) you
> are using?
>
> Dennis
>
> On Wed, Oct 26, 2011 at 4:25 AM, Jörg Reuter <joerg at reuter.at> wrote:
>> Hi,
>> I want draw a dotPlot. All works fine:
>> (Seq <- matrix(c(1, 1, 6, 1, 2, 2, 5, 4, 3, 3, 4, 3,
>> 4, 4, 3, 2, 5, 5, 2, 5, 6, 6, 1, 6), ncol = 6))
>> dotPlot(Seq[1,], Seq[2,], main = "Sequenz 1 und
>> Sequenz 2", asp = 1)
>> Is there a way to draw a small diagonal, begin at (0/0) to (6/6)
>> (perhaps in red??) or must I use gimp? I have many dotPlots, so it is
>> fine if R can do this.
>>
>> Thanks Joerg
>>
>> ______________________________________________
>> R-help at 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.
>>
>

______________________________________________
R-help at 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.



More information about the R-help mailing list