I want to turn off selected axes in bwplot. I would like to only have the
bottom axis drawn, with the others off.
I have a series of bwplots that I want on one device, like this:
p1-bwplot(x1,box.ratio=.1)
p2-bwplot(x2,box.ratio=.1)
...
print(p1,position=c(0,.8,1,1),more=T)
Does this do what you want?
bwplot(...,
scales = list(x = list(alternating = 1, tck = c(1, 0
This is described in detail under 'scales' in ?bwplot.
Not quite. This controls, if I've understood it correctly, the axis tick
marks and such (I also tried the argument draw=FALSE
I rewrote scatter.smooth to handle missing values, but I have a question
about a move I had to make. Here's the code:
Mscatter.smooth-function (x, y, span = 2/3, degree = 1, family =
c(symmetric,
gaussian), xlab = deparse(substitute(x)), ylab =
deparse(substitute(y)),
ylim = range(y,
I'm trying to find a way to force all the x-axis tick labels to plot,
regardless whether or not they overlap or look pretty.
V is a factor with, say, 4 levels. A call to plot(V) gives a
histogram-like plot, one bar for each level in V. The problem is that
all the label names may not be
Is there any way besides looping to remove complete rows from a matrix
or data frame where there is at least one NA in any of the columns?
For example
a
[,1] [,2]
[1,] 02.6875
[2,] 8.37 6.625
[3,] 15.6 4.375
[4,] 23.4 6.25
[5,] 29 5.09375
[6,] 18
I have files which have columns of data that look like this:
DOB
9/27/1964
...
That is, dates in month/day/year format. When variables like DOB are read
in, they are converted to factors.
So, I wrote this to convert from date to age in years:
age-function(x)