[R] How to produce serveral plots with pairs of vectors

slyrs66 andreas.fahr at gmx.de
Sun Apr 8 14:51:11 CEST 2012


Dear R-Users,
I have a newbie-question about producing several plots with five variable
pairs within in one code (loop).

Problem:
I define two objects, erveryone has five vectors (columns /variables):

dimensionen <- data.frame(meinspss$attr_diff_gesamt,
meinspss$finanz_diff_gesamt, meinspss$leist_diff_gesamt,
meinspss$soz_diff_gesamt, meinspss$wert_diff_gesamt)
gruppe <- data.frame(meinspss$R1_02, meinspss$R2_02,
meinspss$R3_02,meinspss$R4_02,meinspss$R5_02)

Now I would like to plot five similar graphs (beanplots, boxplots) for every
pair of vectors (dimension by gruppe) . 

This works: box plot (dimensioned) - I receive a plot with 5 boxes.

This does not work: boxplot (Dimensionen ~ Gruppe) - I would like to receive
5 plots

I get the error message: 
Fehler in model.frame.default(formula = dimensionen ~ gruppe) : 
ungültiger Typ (list) für die Variable 'Dimensionen'

Any help is very much appreciated!

Happy Easter
slyrs66

--
View this message in context: http://r.789695.n4.nabble.com/How-to-produce-serveral-plots-with-pairs-of-vectors-tp4540968p4540968.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list