Message-ID: <CAAmySGORnj3eodLactv1xt2xc1onNCQiPjPN38baEH9O9jD-1Q@mail.gmail.com>
Date: 2012-02-16T02:23:18Z
From: R. Michael Weylandt
Subject: Error in rep.int(boxwex, n) : negative length vectors are not allowed
In-Reply-To: <1329320812.57958.YahooMailNeo@web125406.mail.ne1.yahoo.com>
Can you give minimal reproducible code? I'm worried about using
strings for the x axis but it'll be easier to diagnose with data and
actual code. Use dput() to put your data sample (not your whole data
set) in email-friendly plain text.
Michael
On Wed, Feb 15, 2012 at 10:46 AM, carol white <wht_crl at yahoo.com> wrote:
> Dear All,
> I tried to invoke plot for a matrix of?196475 x2 dimension. I loaded the data with read.table. On one dimension, there are strings (names) and on the other dimension, the floats between 0 and 1. When I invoked plot by setting x to names and y to floats and ylim = c(0,1), I got the following error message:
>
> Error in rep.int(boxwex, n) : negative length vectors are not allowed
>
>
> Does it come from the large-size dimension of the matrix and which vectors get a negative length?
>
> Best,
>
> Carol
>
> ______________________________________________
> 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.