[R] Help with boxplot

Bert Gunter gunter.berton at gene.com
Wed Jul 27 00:39:41 CEST 2011


Please first read the Help file -- ?bwplot
and especially note the examples at bottom.

-- Bert

On Tue, Jul 26, 2011 at 12:39 PM, Tia Molte <moltenigiuseppe at alice.it> wrote:
> Hi guys,
> I need your help with the boxplot.
> I've to create a boxplot starting from a table (.csv) in which there are the
> result of a test.
> Each column is a question and the rows are the answer of the respondents
> (from 0 to 5).
> Some answer is missing and has been filled with NA.
> the table has been loaded in R with the function read.csv
> I created the boxplot with the function boxplot and all work fine.
> Now I have to create the boxplot with the package lattice and the function
> bwplot.
> when I try to use the function, R return the following error message:
>> local({pkg <- select.list(sort(.packages(all.available =
>> TRUE)),graphics=TRUE)
> + if(nchar(pkg)) library(pkg, character.only=TRUE)})
>> class(table)
> [1] "data.frame"
>> bwplot(table)
> Errore in UseMethod("bwplot") :
>  no applicable method for 'bwplot' applied to an object of class
> "data.frame"
> Seems that some parameters are missing.
> No problem if I use the function bwplot only with each single column of the
> table.
> thanks in advance
> regards
> Tia Molte
> --
> View this message in context: http://r.789695.n4.nabble.com/Help-with-boxplot-tp3696789p3696789.html
> Sent from the R help mailing list archive at Nabble.com.
> ______________________________________________
> 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.

"Men by nature long to get on to the ultimate truths, and will often
be impatient with elementary studies or fight shy of them. If it were
possible to reach the ultimate truths without the elementary studies
usually prefixed to them, these would not be preparatory studies but
superfluous diversions."

-- Maimonides (1135-1204)

Bert Gunter
Genentech Nonclinical Biostatistics

More information about the R-help mailing list