[R] using lattice dotplot with two equal data points

Deepayan Sarkar deepayan.sarkar at gmail.com
Tue Jun 16 19:16:10 CEST 2009


On Fri, Jun 12, 2009 at 10:54 AM, Chosid, David
(FWE)<David.Chosid at state.ma.us> wrote:
> I'm wondering if I am dealing with a limitation in lattice.  It's
> probably due to my own limitations though.
>
> I'm working with a lattice dotplot.  The x-axis is set at "free".  In
> one panel, there are only two data points that have equal x-axis values.
> Since no range exists, lattice isn't plotting those points. It reports:
>
> "Error Packet using 6
> 'x' and 'units' must have length>0"
>
> Is there a way that I can get it to plot anyway?  Do I have to
> manipulate that one panel?  Any suggestions on how to do that?  I'd
> rather have some sort of automatic backup range set instead.

A reproducible example please.

-Deepayan

>
> David Chosid
> Massachusetts Division of Marine Fisheries
> 1213 Purchase St., 3rd Floor
> New Bedford, MA 02740
> 508-990-2860 x140
> email: david.chosid at state.ma.us
>
> ______________________________________________
> 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