[R] dotPlot with diagonal

Jörg Reuter joerg at reuter.at
Wed Oct 26 15:13:06 CEST 2011


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.
>>
>



More information about the R-help mailing list