similar to: Subsetting across a frame for plotting

Displaying 19 results from an estimated 19 matches similar to: "Subsetting across a frame for plotting"

2002 Sep 23
3
Newbie: Subsets of data frame
I feel a bit embarassed by this, but I have not managed to find out how: I have a data frame containing measurements over time for a number of different locations: > str(milk) `data.frame': 845 obs. of 3 variables: $ date : num 1987 1987 1987 1987 1987 ... $ value : num 5 1 2 5 1 1 2 3 2 4 ... $ location: Factor w/ 36 levels "Alta","And?y",..: 1 1 1 1 1 1
2003 Jan 21
2
Plot using different symbols depending on value.
I am making a plot from R indicating an average, min and max value for a number of sample types. as horizontal lines with the sample types on the y-axis. (see http://home.newmedia.no/sickel/R.html for the plot and code) In some cases, the min value is the detection limit, and I would like to indicate that bu using a <, rather than the usual | I use for indicating the value. I am plotting each
2003 Feb 03
4
Overlaying a moving average curve on top of a barplot
I''m using standard barplot (Windows version 1.6.2 of R) to represent a certain weekly metric "v" and I would like to properly overlay on top of it its moving average "mean.8" (window of 8 weeks). I must be doing something wrong since the moving average (using "lines") doesn''t overlay properly, i.e., both x-scales do not match! ...
2002 Sep 17
2
grid.legend - lines
I am testing out the grid-plots, but get into a problem making a legend. I have a line plot and some points, following the model in grid.plot.and.legend() i manage to get the points correctly in the legend, but what do I do with the line? (Of cource, I can just draw a line at the right location on the plot, but I would prefer to use legend) Morten -- Morten Sickel Norwegian Radiation
2002 Feb 26
1
Cross-tabulation of data from database
I am quite new to R, so please bear over with me if I have problems with the R terminology. I want to (try to) use R for some analyses within vegetation ecology, using the vegan package. I have my data in a postgresql database, and I manage to get them into R as a dataframe with columns for respectively: Name of the analysed m2, Name of the species, coverage of species in the square in %. I
2003 Mar 14
2
plot
Can anyone tell me how to plot on the same graph two different functions (of x) using two differnt y scales (axes 2 and 4)? Thanks Nelson
2002 Dec 13
2
A beginner's problems with plotting
Hi, How would I go about plotting all 8 columns of a data.frame on a simple line graph. i.e. eight lines and sets of points, differentiated by line pattern or colour)? An what further arguments would I need to invoke a log scale on the y-axis of that same plot (normal x-axis)? Cheers, Jeremy
2007 Dec 21
1
post hoc in repeated measures of anova
Hallo, I have this dataset with repeated measures. There are two within-subject factors, "formant" (2 levels: 1 and 2) and "f2 Ref" (25 levels: 670, 729, 788, 846, 905, 1080, 1100, 1120, 1140, 1170, 1480, 1470, 1450, 1440, 1430, 1890, 1840, 1790, 1740, 1690, 2290, 2210, 2120, 2040, 1950), and one between-subject factor, lang (2 levels:1 and 2). The response variable
2003 Feb 20
3
Why does 'exists' need a quoted argument?
Some functions in R need quoted arguments. Consider this list: help(rm) rm(a) is.na(a) get("rm") exists("rm") Can someone explain why 'get' and 'exists' require quoted object names? Would it make sense (more consistency) to have these functions check to see if the first argument is a string, and if not, then 'substitute' it? Intuitively,
2009 Sep 09
2
ggplot2: mixing colour and linetype in geom_line
Hi all, I try to represent a multiple curve graphic where the x-axis is the temperature and the different y-axes are the different X (X22,X43,X44...) some X corresponds to the same molecule (22 and 44 are for CO2 for instance) so I use the same colour for them. I wanna mix the linetype with the colour to be able to visually see the difference between X43 and X45 The best I have done up to now
2003 Jan 31
2
Varying texts in expression(paste())
Hi, I am using R a lot to make plots relating to radioactivity, I am often using expression() to label the plots with nuclide names written with superscripts, e.g. expression(paste("Releases of ", { }^{99},Tc," (TBq/year)"))->ywtext But, is there any simple way to change the number and name of the nuclide through a variable? I tried nuccode=expression({ }^{99},Tc)
2011 Apr 20
1
taking rows from data.frames in list to form new data.frame?
Hi, I am having a problem figuring out how to extract a subset of rows. I have a list with 68 similar data.frames. Each data.frame is 500 rows by 5 columns. I want to take one row from each data.frame based upon the data in a particular column (i.e. it matches a symbol). For example: > str(database) List of 68 $ X2011.01.11:'data.frame': 500 obs. of 5 variables: ..$ Symbol
2004 Apr 21
2
Question on CAR appendix on NLS
The PDF file on the web, which is an appendix on nonlinear regression associated with the CAR book, is very nice. When I ran through the code presented there, I found something odd. The code does a certain model in 3 ways: Vanilla NLS (using numerical differentation), Analytical derivatives (where the user supplies the derivatives) and analytical derivatives (using automatic differentiation). The
2008 Jun 24
2
logistic regression
Hi everyone, I'm sorry if this turns out to be more a statistical question than one specifically about R - but would greatly appreciate your advice anyway. I've been using a logistic regression model to look at the relationship between a binary outcome (say, the odds of picking n white balls from a bag containing m balls in total) and a variety of other binary parameters:
2009 Oct 17
0
how to cluster data for use with lmer
Dear R users My data set is e > names(e) [1] "yearctry" "discent" "age" "gender" "gemeduc" "gemhhinc" "ref_group" "fearfail_ref" "knowent_ref" "nbgoodc_ref" [11] "nbstatus_ref" "estbbuso_ref" "lngdp" "lngdpsq"
2006 Jul 15
0
How to Interpret Results of Regression in R
----------------------------------------------------------------------------------------------------- Howdy, Gurus I am appying R package for regression analysis as followings. A dependent variable is jhnet that means ratio of dividing internal trip with all trips in a traffic zone. There are many indepentent variables including factor or dummy varibles such as parkfee, ohouse, Devt2, corridor1.
2011 Nov 02
0
Calling str() on mlogit object gives warnings
Hi: When I call str() on an mlogit object, I seem to get warnings. This code is from an example provided in the mlogit documentation: library(mlogit) data("Train", package="mlogit") tr<-mlogit.data(Train, shape="wide", choice="choice", varying=4:11, sep="", alt.levels=c(1,2), id="id")
2009 Oct 18
2
How to create MULTILEVELS in a dataset??
Dear R users I have a data set which has five variables. One depenedent variable y, and 4 Independent variables (education-level, householdincome, countrygdp and countrygdpsquare). The first two are data corresponding to the individual and the next two coorespond to the country to which the individual belongs to. My data set does not make this distinction between individual level and country
2003 Feb 05
1
Bug in recording (Windows graphical device)
I was making a lot of similiar plots, so I made a script for making each of them and a driver program that repeatly called the script with the right parameters. The plot is made by: <code> barplot(Releases[[i]],col='gray',names.arg=as.character(Releases$Year), ylim=c(0,max),ylab=unit) box() grid(col='black',nx=NA,ny=NULL)