Displaying 20 results from an estimated 6000 matches similar to: "Change the scale on a barplot's y axis"
2013 Mar 06
8
Understanding lm-based analysis of fractional factorial experiments
All,
I have just returned to R after a decade of absence, and it is good to
see that R has become such a great success! I'm trying to bring Design
of Experiments into some aspects of software performance evaluation, and
to teach myself that, I picked up "Experiments: Planning, Analysis and
Optimization" by Wu and Hamada. I try to reproduce an analysis in the
book using lm, but
2009 Mar 23
1
lattice multipanel strip placement - with two factors
Hi,
I'm making a multipanel lattice densityplot figure with 2 factors (3 and
20 classes in each factor) with the following statement (the
type="percent" is there to prevent plotting the actual points which
detract from the figure - is there another way of doing this?):
densityplot(~End-Begin | Type * Chromosome, data=Mon, layout=c(5,12),
xlab="Element
2010 Sep 27
7
Regular expressions: offsets of groups
Dear list!
> gregexpr("a+(b+)", "abcdaabbc")
[[1]]
[1] 1 5
attr(,"match.length")
[1] 2 4
What I want is the offsets of the matches for the group (b+), i.e. 2
and 7, not the offsets of the complete matches. Is there a way in R
to get that?
I know about gsubgn and strapply, but they only give me the strings
matched by groups not their offsets.
I could write
2006 Jun 15
1
Repost: Estimation when interaction is present: How do I get get the parameters from nlme?
Gday,
This is a repost since I only had one direct reply and I remain
mystified- This
may be stupidity on my part but it may not be so simple.
In brief, my problem is I'm not sure how to extract parameter
values/effect sizes from a nonlinear
regression model with a significant interaction term.
My data sets are dose response curves (force and dose) for muscle that
also have two
2006 Apr 14
2
spot the error (I can''t, I''m new)
I have a form that I want to use to update multiple
objects. In the controller,
@grades = Grade.find(params[:grade].keys)
@grades.each_with_index do |grade, i|
grade.update_attribute(params[:grade][i])
end
all_valid = @grades.inject(true) {|memo, c|
c.valid? && memo }
this doesn''t update the attributes as I would expect.
(I would just use
2004 Dec 30
3
labels and counting
Hello,
I have got the following problem:
given is a large string sequence consisting of the four letters "A" "C"
"G" and "T" (as before). Additionally, I have got a second string
sequence of the same length giving a label for each character. The
labels are "+" and "-".
Now I would like to create an 8x8 matrix which contains the
2003 Mar 24
2
Box Plot Question
I would like to create 15 box plots from two sets of data.
Set1 - containts PayGrade, Min_Salary, Max_Salary data for 15 pay grades
Set2 - contains PayGrade, Actual_Min, Actual_Max, and Actual_Mean for the 15
pay grades
I would like 15 box plots (one for each paygrade) whose whiskers were the
Min_Salary and Max_Salary data
and whose ''box'' was Actual_Min, Actual_Mean,
2010 Oct 29
2
wilcox.test; data type conversion?
I'm working on a quick tutorial for my students, and was planning on
using Mann-Whitney U as one of the tests.
I have the following (fake) data
grade <- c("MVG", "VG", "VG", "G", "MVG", "G", "VG", "G", "VG")
sex <- c( "male", "male", "female", "male",
2003 Feb 19
3
working with list
hi,
i have two questions:
(1) lookup: given a list of 'strings' in a list, i want to know the index
of a given string in the list. if the string is not in the list, the index
can be 0 or length()+1. for example, suppose i have
names <- c("dog", "cat", "pig", "fish");
then i want
lookup(names, "cat") to return 2 and
lookup(names,
2013 Jun 03
1
Multiple selection and normalization
Hi--
I am trying to normalize course grades for each instance of a course, e.g.
Stats 1 Fall2009 J. Smith.
I have a frame for all instances of a course, e.g. stats 1 in the last 5
years, that looks like
SIDN TERM GRADE INST
where SIDN is a Student ID Number, TERM is a factor that gives the quarter
and year a course was offered, GRADE is a 0-4.3 grade and INST is the
instructor, again as a
2011 Aug 16
1
Repeated measures cummulative logit mixed model
Dear R help gurus,
I have the following problem and I would be delighted if you could help me.
>From a large (1500) cohort of patients we have been taking some measurements
(ECG measurements, but its not important). The measurements are ordinal in 4
grades (Grade I-IV, grade IV being the most severe form). Every patients has
been measured several times (usually once per year). The
2006 Jun 30
2
has_many through - getting the parent
has_many :through is great. Is there anyway to find the association
that it went through?
Example:
class Student
has_many :projects
has_many :grades, :through => :projects
end
student.grades[3].project
Is it clear what I''m asking? How would this be done?
--
Posted via http://www.ruby-forum.com/.
2002 Dec 12
1
rsync error with novell server
Hi guys!
I'm using rsync to update my work and mail
from my Unix-workstation to my home directory
on a Novell-Server...
This is what I get as a message after the rsync is
finished
rsync error: partial transfer (code 23) at main.c(578)
I understand that rsync was trying to chown a
directory on the server which Novell doesn't support
(or our admin doesn't :}) ... however, I
2009 Apr 11
1
Error in R CMD check 2.8.1
Env: R 2.8.1, Win Xp, Eclipse/StatET
In a .Rd file, I have an example containing the lines:
# calculate Y M, using polynomial contrasts
trends <- as.matrix(VocabGrowth) %*% poly(8:11, degree=3)
colnames(trends)<- c("Linear", "Quad", "Cubic")
[At the risk of a long message, I'll append the complete .Rd file at the
end of this message, in case this was
2004 Nov 28
1
paste command
In a previous post, I mentioned a loop being used to generate graphs. I have some sample code partially put together but have found one offending line of code that I cannot figure out what to do with.
I have one data frame called grade4. If I do something like
hist(grade4$math)
I get the appropriate chart.
Within the loop, however, I am doing this for multiple files and grades, so I use
2005 Aug 24
2
Remove NAs from Barplot
Dear List:
I'm creating a series of barplots using Sweave that must assume a
standard format. This is student achievement data and the x-axis must
include all grades 3 to 8. In some cases, the data for a grade (or more
than one grade) are missing in the vector math.bar, but are never
missing for the vector apmxpmeet. The following sample code illustrates
the issue.
Using the code below to
2004 Aug 06
1
Comparing rows in a dataframe
Hello
I have a longitudinal dataframe organized in the long format and would like to make comparison between successive rows if certain conditions apply. Specifically, I have four variables of interest: grade, score, year, and schid, associated with each school with 3 measurements per school per grade, therefore the rows are temporally ordered and each school occupies multiple rows. For example,
2015 Jul 13
2
Crear datos aleatorios con restriciones
Hola,
Esta pregunta la hice en stackoverflow
<http://stackoverflow.com/questions/31137940/randomly-assign-teachers-to-classrooms-imposing-restrictions/31143808#31143808>pero
nadie pudo contestarla.
1. Quiero generar N escuelas, con G grados y C divisiones.
2. Quiero asignar cada uno de T maestros a 2 divisiones en un grado y
escuela
Si tengo C=4 divisiones, puedo lograr lo que quiero con
2001 Jan 05
1
Trends for many units
I have data on every grade in all elementary schools in Chicago over 5 years. I
would like to estimate a trend over time for each grade in each school. There
are 17,600 data all together (about 460 schools, nearly 8 grades each, over 5
years). Is there a not-so-hard way to do this in R (I was thinking of using
rlm)?
______________________________________________________________________
Stuart
2009 Mar 12
3
Unable to run smoother in qplot() or ggplot() - complains about knots
I get the following error when I run qplot()
qplot(grade, read,data = hhm.long.m, geom = c("point", "smooth"))
Error in smooth.construct.cr.smooth.spec(object, data, knots) :
x has insufficient unique values to support 10 knots: reduce k.
I am not sure how to tackle this problem. When I take a subsample (<
1000) than I am able to run that function but with my sample