Displaying 3 results from an estimated 3 matches for "splitcol".
Did you mean:
slotcol
2002 Aug 15
2
complex splits
Hi everyone,
I'm having trouble figuring out how to split a dataframe more than once.
Let's say I have a dataframe d with a certain column called splitcol
composed of four possible ordinal values. The same dataframe has
two other columns, col1 and col2, that have one of two possible values
each. I'd like to split d$splitcol based on col1 and col2 so I can report
frequencies of the subgroups.
So if col1 and col2 can each have two different value...
2009 Jan 02
1
How to capture multiple graph pages to .png ?
...f(!is.na(plotFileName)) {
print(paste("Saving Zonal plot to file ",plotFileName,".png",sep=""))
print("(To display instead, do not pass any 'plotFileName' argument to
cro.zone.plot function.)")
maxLayout <- c(0,length(unique(miniDataSet$splitCol)))
png(filename =
paste(as.character(plotFileName),".png",sep=""),width=(1.2*plotSize*(maxLayout[2]^(1/3))),
height=(plotSize*(maxLayout[2]^(1/3))))
} else {
devAskNewPage(ask = TRUE)
maxLayout <- c(0,min(16,length(unique(miniDataSet$splitCol))))
}
l...
2009 Apr 08
1
how to adjust titles on sub-plots in levelplot / contour plot?
...vely long) function script that generates a levelplot.
I don't want to include all of the code, so I have attached in file
"miniDataSet.csv" an example for the data set "miniDataSet" that is called
below.
The function works OK, except that when the variables in the "splitCol"
column get very large (as they are in this data set I have attached), it
cannot print the whole thing in the "trellis subplot", the little title
above each sub-plot that is generated. I have also attached a picture which
shows how the graph looks (when run in my environment... hope...