Hi all, I have an easy data set. It has three columns: Subject, Condition, dprime. A small excerpt follows, in order to illustrate: Subject Condition dprime HY s 3.725846 CM s 2.877658 EH s 5 HY st 2.783553 CM st 2.633955 EH st 5 I want to visualize this. What I thought of was having dprime on the y-axis (scale 0-5), Subject on the x-axis, and then two lines plotted to show the dprime value for condition s and condition st. I would like s to be plotted with a solid line and st plotted as a dashed line. I assume this is very easy. I just have no idea how to do it. I would greatly appreciate any help. Thanks. -- View this message in context: http://www.nabble.com/Visualizing-some-data-tp25756996p25756996.html Sent from the R help mailing list archive at Nabble.com.
See http://addictedtor.free.fr/graphiques/ for many examples with code. Bert Gunter Genentech Nonclinical Biostatistics -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of sverre Sent: Monday, October 05, 2009 1:13 PM To: r-help at r-project.org Subject: [R] Visualizing some data Hi all, I have an easy data set. It has three columns: Subject, Condition, dprime. A small excerpt follows, in order to illustrate: Subject Condition dprime HY s 3.725846 CM s 2.877658 EH s 5 HY st 2.783553 CM st 2.633955 EH st 5 I want to visualize this. What I thought of was having dprime on the y-axis (scale 0-5), Subject on the x-axis, and then two lines plotted to show the dprime value for condition s and condition st. I would like s to be plotted with a solid line and st plotted as a dashed line. I assume this is very easy. I just have no idea how to do it. I would greatly appreciate any help. Thanks. -- View this message in context: http://www.nabble.com/Visualizing-some-data-tp25756996p25756996.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.
Try also to look at lattice or ggplot2. Regards Petr r-help-bounces at r-project.org napsal dne 05.10.2009 23:45:48:> See http://addictedtor.free.fr/graphiques/ > > for many examples with code. > > Bert Gunter > Genentech Nonclinical Biostatistics > > > > -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]On> Behalf Of sverre > Sent: Monday, October 05, 2009 1:13 PM > To: r-help at r-project.org > Subject: [R] Visualizing some data > > > Hi all, > > I have an easy data set. It has three columns: Subject, Condition,dprime. A> small excerpt follows, in order to illustrate: > > Subject Condition dprime > HY s 3.725846 > CM s 2.877658 > EH s 5 > HY st 2.783553 > CM st 2.633955 > EH st 5 > > I want to visualize this. What I thought of was having dprime on they-axis> (scale 0-5), Subject on the x-axis, and then two lines plotted to showthe> dprime value for condition s and condition st. I would like s to beplotted> with a solid line and st plotted as a dashed line. > > I assume this is very easy. I just have no idea how to do it. I would > greatly appreciate any help. > > Thanks. > -- > View this message in context: > http://www.nabble.com/Visualizing-some-data-tp25756996p25756996.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 guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.