Displaying 20 results from an estimated 1000 matches similar to: "superscripts in xyplot labels"
2007 Dec 12
3
lm/model.matrix confusion (? bug)
Dear List-members,
Hopefully someone will help through my confusion:
In order to get the same coefficients as we get from the following
##
require (MASS)
summary ( lm(Gas ~ Insul/Temp - 1, data = whiteside) )
......................
we need to do the following (if we use model.matrix to specify the model)
##
summary ( lm(Gas ~ model.matrix(~ Insul/Temp - 1) - 1, data = whiteside) )
2010 Feb 08
3
What is the equivalent function in R to xyplot in S?
Page 140 of MASS uses the function xyplot. But I don't find it in R.
Is there a package that I should load to use xyplot. Or there is a
function with a different name in R that does the same thing as xyplot
in S.
xyplot(Gas ~ Temp | Insul, whiteside, panel =
function(x, y, ...) {
panel.xyplot(x, y, ...)
panel.lmline(x, y, ...)
}, xlab = "Average external temperature (deg. C)",
ylab
2008 Mar 05
1
testing for significantly different slopes
Hi,
How would one go about determining if the slope terms from an analysis of
covariance model are different from eachother?
Based on the example from MASS:
library(MASS)
# parallel slope model
l.para <- lm(Temp ~ Gas + Insul, data=whiteside)
# multiple slope model
l.mult <- lm(Temp ~ Insul/Gas -1, data=whiteside)
# compare nested models:
anova(l.para, l.mult)
Analysis of Variance
2018 Dec 15
2
Documentation examples for lm and glm
A pragmatic solution could be to create a simple linear regression example
with variables in the global environment and then another example with a
data.frame.
The latter might be somewhat more complex, e.g., with several regressors
and/or mixed categorical and numeric covariates to illustrate how
regression and analysis of (co-)variance can be combined. I like to use
MASS's whiteside
2018 Dec 16
3
Documentation examples for lm and glm
On Sat, 15 Dec 2018, frederik at ofb.net wrote:
> I agree with Steve and Achim that we should keep some examples with no
> data frame. That's Objectively Simpler, whether or not it leads to
> clutter in the wrong hands. As Steve points out, we have attach()
> which is an excellent language feature - not to mention with().
Just for the record: Personally, I wouldn't recommend
2012 Dec 04
1
control point size of superscript when labeling axes with title()
Hi-
A journal has asked me to make all of my text annotations on a figure at 10-point size. For the most part this is easy, e.g. by creating figures with:
pdf(..., family='Times', pointsize=10)
But where I have superscripts (or subscripts) in axis labels, the default seems to be to shrink the superscripted text slightly. For example this code:
2005 Jun 14
3
superscript in figures - basic question
Although I see similar, but more complex, questions addressed in the help
archive, I'm having trouble adding superscripted text to the y-axis labels of
some figures, and I can't find anything in the R documentation on this.
I have:
ylab="BA (m2/ha)"
but I want the "2" to be superscripted.
Thanks in advence for the help, or for pointing out the appropriate help file.
2008 Feb 23
3
using subset() in data frame
R folks,
As an R novice, I struggle with the mystery of subsetting. Textbook and
online examples of this seem quite straightforward yet I cannot get my
mind around it. For practice, I'm using the code in MASS Ch. 6,
"whiteside data" to analyze a different data set with similar variables
and structure.
Here is my data frame:
###subset one of three cases for the variable
2010 May 04
4
superscript
hello,
i need to add legend text: "4th-root transformation", with the "th"
superscripted -
tried much - but nothing worked..
thanks for any hints,
kay
-----
------------------------
Kay Cichini
Postgraduate student
Institute of Botany
Univ. of Innsbruck
------------------------
--
View this message in context:
2000 Sep 26
3
lm -- significance of x coefficient when I(x^2) is used
In "Modern Applied Statistics with S-Plus" 3rd ed., footnote on page 153
regarding a model lm(Gas~Insul/(Temp+I(Temp^2))-1,whiteside), I read
"Notice that when the quadratic terms are present, first degree
coefficients mean 'the slope of the curve at temperature zero', so a
non-significant value does not mean that the linear term is not
needed.
2009 Jul 01
0
help with superscripts in simple plots
Hello All,
When I use the following lines of code to create a plot and add labels
with R-square values the labels have a superscripted R2.
library(lattice)
xyplot(PropHatchedNests$Phatched + PropHatchedNests$PropNests +
PropHatchedNests$meanHSI + PropHatchedNests$RelMeanEggsNest ~
PropHatchedNests$Year, type = "b",
scales=list(tick.number=length(PropHatchedNests$Year)),
2009 Mar 22
3
data analysis. R
so i am having this question
what should i do if the give data file (.txt) has 4 columns, but different
lengths?
how can i read them in R?
any idea for the following problem?
Gas consumption (1000 cubic feet) was measured before and after insulation
was put into
a house. We are interested in looking at the effect of insulation on gas
consumption. The
average outside temperature (degrees celcius)
2008 Feb 15
1
Re storing a UPDATES on a data.frame
Hello everyone,
Can anyone tell me how do I restore data in a data.frame provided by base
R libraries (MASS) ?
I uninstalled R then installed it again and I still see the new changes I
made!!!???
(eg. whiteside$Temp=1 ==> 1 overwrote all the rows, I want the old values :(
!!
Please HELP!
--
View this message in context:
2003 Sep 24
1
Graph window is not available any more
Hi all,
I have currently been using the book Modern Applied Statistics with S from
Venables and Ripley. At chapter 6 on Linear Statistical models I wanted to
produce the plot as shown by "Figure 6.1" using Whiteside's data. xyplot
command seems not to work on my version of "R"(version 1.7.0) running on
different environments (Win XP, Win 98 and Win 2000). I then used the
2010 May 10
1
Supercripting text
Dear R users,
I recently developed a plotting function in R and introduced it to my coworkers. The function is designed to make plotting easier and more efficient, which will in turn be more cost-effective for the company. The reviews for the function have been positive thus far, except for one issue -- addition of superscripts to the title. We need superscipts in the titles sometimes to
2001 Apr 01
1
ylab/ expression/ superscript to a bracket
Colleagues
----------------------------------
System info:
R version rw1022 on NT
ESS v. 5.1.18 using emacs ver. 20.4
----------------------------------
I have some rather unusual units for acoustic volume backscattering
integrated over several metres depth and 10 transmits (which happens to
= 160 m along transect). I need to express these units in a graph label.
My problem
2002 Sep 11
1
Import SAS dataset error
Dear all;
Using read.ssd, I tried to import a SAS dataset from a network
drive; an error occurred:
> stemattr <- read.ssd("g:/olmn2/dyang/siteprod/datasasv8", "stemattr")
SAS failed. SAS program at C:\DOCUME~1\dyang\LOCALS~1\Temp\file7785.sas
a log and other error products should be in the vicinity
Warning messages:
1: sas not found
2: ls not found
3: SAS return
2018 Dec 15
0
Documentation examples for lm and glm
I agree with Steve and Achim that we should keep some examples with no
data frame. That's Objectively Simpler, whether or not it leads to
clutter in the wrong hands. As Steve points out, we have attach()
which is an excellent language feature - not to mention with().
I would go even further and say that the examples that are in lm() now
should stay at the top. Because people may be used to
2012 Aug 20
1
Inserting superscripts in free-format text line
I would like to insert a superscript in a body of text (e.g., a title or
axis label), where the superscript is not necessarily at the end of the
text. For example, suppose a title read, "This is a Test^1 of the
Emergency Broadcast System" where there is a superscript 1 after the word
Test.
As a starting point for what I'm trying to do, the following shows a
superscript:
2008 Jul 22
2
Decoding subscripts/superscripts from CSVs
Hi,
I have a CSV file with various biological reactions. Subscripts, superscripts,
and italics are encoded in carats, and I was wondering if R can actually
recognize those and print actual superscripts, etc. Here's an example:
<i>S</i>-adenosyl-L-methionine + rRNA = <i>S</i>-adenosyl-L-homocysteine +
rRNA containing