Displaying 20 results from an estimated 24 matches for "untf".
Did you mean:
intf
2010 Nov 20
10
An empty grey diagram
Hi folks,
Win7 64bit
R 1.12.0
I run following command on R:-
> ToothGrowth
> attach(ToothGrowth)
> plot(dose,len)
> matrics=lm(len~dose)
> abline(metrics)
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new has not been called yet
Only a grey diagram is displayed without content
> plot(abline(metrics))
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new has not been called yet
With the same result.
Pls advise what does it mean? How to re...
2012 Mar 29
1
abline with xyplot does not work
...subject is allowed to have his, or her, own intercept. I use xyplot to plot the data, lme to compute the regression and then try to put a summary regression line on the xyplot. As can be seen by the output pasted below, I am getting an error message,
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
(list) object cannot be coerced to type 'double'
Any ideas what I need to change to make this work?
> # Run random effects regression with subject specific slopes.
> fitxx<-lme(value~time,random=~1|subject,data=repeatdata,na.action=na.omit)
> summary(fitxx)...
2013 Jul 08
3
A question on the abline function
...s with Rstudio now. I have been experiencing difficulty with the abline function. No matter I call it directly in linear regression or call it through residual plots, or plot results from lasso regression, it produces the same error as the following:
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
object 'C_abline' not found
Could you please help me check what is this problem?
Thanks for your time!
Best,
Jia Xu
Citi Research
2008 Aug 05
2
qqline function doesn't plot
I have a data vector x. When I try
qqline(x)
I get the following error:
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new has not been called yet
And a blank plot appears.
Can anybody help? What am I doing wrong?
Thanks,
Scotty
_________________________________________________________________
Contest
[[alternative HTML version deleted]]
2010 Nov 10
1
log-transformed linear regression
...y if it is so evident....
I have the following data file :
http://ekumen.homelinux.net/mydata.txt
I need to model Y~X-1 (simple linear regression through the origin) with
these data :
load(file="mydata.txt")
X=k[,1]
Y=k[,2]
aa=lm(Y~X-1)
dev.new()
plot(X,Y,log="xy")
abline(aa,untf=T)
abline(b=0.0235, a=0,col="red",untf=T)
abline(b=0.031, a=0,col="green",untf=T)
Other people did the same kind of analysis with their data and found the
regression coefficients of 0.0235 (red line) and 0.031 (green line).
Regression with my own data, though, yields a slope o...
2009 Jul 13
2
Problems in plotting with abline
...alculate certain
topological features of networks. When I try to draw a plot between these
features I get an error. Following is the code I am using :
*> plot(met_eco_deg,met_eco_bet)
> lmout<-lm(met_eco_bet ~ met_eco_deg)
> abline(lmout)
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new has not been called yet*
*met_eco_deg* and *met_eco_bet* are the two objects generated from igraph
package. I don't get any error when I just use the plot function. Can anyone
help me out ?Thanks in advance.
Regards,
Anupam Sinha
[[alternative HTML version delete...
2009 Apr 01
2
Plotting multiple ablines
...rge <- na.omit(data.frame(kX,kY,kT))
for (z in (length(converge$kT)))
{abline(
a=tan(converge$kT[z]*pi/180),
b=converge$kY[z]-tan(-converge$kT[z]*converge$kX[z]*pi/180)
)}
I think the missing data are causing the problem; this happens when I run:
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
'a' and 'b' must be finite
2002 Jan 05
1
abline and log plots (PR#1243)
...s a spurious line in addition to the correct line, at least with
the X11 driver. The postscript file generated also has nan values in it, which
causes an error under ghostscript.
xs <- c(0, 150, 300)
ys <- c(75, 40, 23)
par(mfrow=c(1,2))
plot(xs,ys, log="")
abline(70, -0.25, -.1, untf=F)
plot(xs,ys, log="y")
abline(70, -0.3, -.1, untf=T)
dev.copy2eps(file="abline.ps")
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help&q...
2008 May 02
1
A horizontal or vertical line draw on mosaic plot?
...(music) = c(2, 4)
dimnames(music) = list(Age = c("Old", "Young"),
Education = c("High", "Low", "Upper", "Lower"))
mosaic(music, keep_aspect_ratio=FALSE)
abline(h=0.5)
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new has not been called yet
========================================================
Thank you,
Sang Chul
2007 Nov 01
2
problem with log axis
Hello,
if I do:
x <- c(0.5,1,3,6,10,20,40)
y <- 10-log(x)+rnorm(7,0,0.05)
r1 <- lm(y ~ log(x))
plot(log(x),y)
abline(r1)
#
I get a nice plot with the regression line almost over the points.
but:
plot(x,y,log="x")
abline(r1)
gives me exactly the same plot for the points but the regression line
is completely off !
I would like the plot with the real values of X on
2004 Mar 08
5
abline
if I want to specify y-coordinates for the heights of horizontal lines to go across a plot.
x <- c(1,2,3,6,4,8,4,7)
y <- c(3,2,7,4,5,4,5,6)
h <- c(3,5,7)
plot(x,y)
abline(y=h)
However I got error message:
Warning message:
parameter "y" couldn't be set in high-level plot() function
(I tried abline(h=y) , it;s not what I want also)
Do u know why?
2008 Jun 12
1
adding horizontal lines to a trellis plot
...o add two horizontal lines representing acceptible drug levels to a trellis plot.
I tried using abline and I get an error that "plot.new has not been called." See below.
xyplot(FK~WEEK|Event1/MRN, data=FKdat.o1)
abline(h=5)
abline(h=10)
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new has not been called yet
Any help that can be provided on how to do this would be appreciated.
Best,
Suzette
Suzette Blanchard, Ph.D.
Assistant Professor, Dept. of Biostatistics
City of Hope
1500 East Duarte Rd
Duarte, CA 91010-3000
ph: (626) 256-4673 ext:64446
sblan...
2010 Mar 22
1
Using dev.copy
...h
results in error.
## Draw the master plot on png dev 2
png(file="master.png")
plot(1:10)
## Save a copy on png dev 3
png(file="copy1.png")
dev.set(2)
dev.copy(which=3)
## Add details to copy, write to disk and view
abline(v=5)
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new has not been called yet
Can someone tell me how to do this correctly?
Thanks a lot,
Dan
2011 Sep 07
1
linear regression, log-transformation and plotting
...scale.
I tried two approaches the standard plot function and ggplot.
# Plot with ggplot
ggplot()+
geom_point(aes(b1,a1,data=data1))+
geom_abline(aes(intercept=coef(model)[1],slope=coef(model)[2]))+
scale_y_log()+
scale_x_log()
# Plot with standard plot
plot(b1,a1,log="xy")
abline(model,untf=T)
abline(model,untf=F)
1) The regression lines are different for plot vs. ggplot(transformed or untransformed). So what is actually the correct line?
2) The regression line was calculated on basis of log(x+1), but the log scale on my axis is just simple log (without +1). So how are such cases u...
2010 Jun 11
2
Misplacement of Greek letter
...)", "Exendin\n(9-39) (n=8)"),mgp=c(3,4,0), axisnames=TRUE,
ylim=c(0,10000), col=c('grey88','grey71'), axes=FALSE, lwd=2, space=.5)
axis(2, at=c("0", "2000", "6000","10000"), lwd=2, font=1.7,
pos=-.025,cex.axis=2)
abline(h=0, untf=FALSE, lty=1, lwd=2)
arrows(.4, 8297.291, .4, 6284.284, code=3, angle=90, lwd=2)
arrows(.16,7071.79,.16,4377.585, code=3, angle=90, lwd=2)
Thanks all!
--
View this message in context: http://r.789695.n4.nabble.com/Misplacement-of-Greek-letter-tp2251294p2251294.html
Sent from the R help mailing l...
2009 Apr 28
2
effects package --- add abline to plot
...fects(Clean.label),ask=FALSE, alternating = TRUE,
ylab="Probability of Rating", xlab="City",main="Cleanliness Ratings by City",
factor.names=FALSE, ticks=c(0.1,0.2,0.3,0.4,0.5,0.6))
abline(h=c(0.1,0.2,0.3,0.4,0.5,0.6))
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new has not been called yet
Less bothersome is the fact that the tick marks weren’t modified to 0.1, 0.2, 0.3, etc.
Further searching brought the panel.abline command to light, but that didn’t produce any results, not even an error message.
> plot(allEffects(Clean.labe...
2006 Jan 20
3
abline() or predict.lm() when log="x"
Hello,
I'm trying to plot a fitted lm() line on a plot when the one
explanatory variable is log transformed and log="x". I get different
lines using abline and predict.lm().
#Example
x <- 1:100
y <- rnorm(100)
plot(y ~ x, log="x")
abline(lm(y ~ log(x)))
lines(x, predict(lm(y ~ log(x))), lwd=2)
I'm sure I'm missing something but could someone tell me which
2004 Mar 03
3
Adding text (coefts) to pairs panels
...tted, but not the text/coefficients.
Using one of the R examples, example(pairs), I have got this far:
panel.myfitline<-function(x, y, digits=2, prefix="", cex.cor, ...)
{
res<-panel.smooth(x,y, col.smooth="blue", ...)
reg <- coef(lm(y ~ x))
abline(coef=reg,untf=F)
const<-format(reg[1], trim = FALSE, digits = NULL, nsmall = 0, justify =
"left", ...)
const<-paste(prefix, const, sep="")
slope<-format(reg[2], trim = FALSE, digits = NULL, nsmall = 0, justify =
"left", ...)
slope<-paste(prefix, slope, se...
2006 Apr 07
1
Multiple ablines
...nes of the simulated data. Therefore,
I have placed the code within the loop of the simulation. This works
fine for points(), I can watch the additional points being added to the
plot as the simulations run. However, when I include abline() it gives
this error: "Error in abline(a, b, h, v, untf, col, lty, lwd, ...) :
'a' and 'b' must be finite"
I can take the code as written and place it outside of the loop and it
works fine, plotting the points and regression line for the data of the
last run of the simulation. And as I said I can plot all of the points
f...
2007 Nov 19
0
R code for L-moment digram
...ALSE, noglo=FALSE, nogpa=FALSE, nope3=FALSE,
+ nogno=FALSE, noexp=FALSE, nonor=FALSE, nogum=FALSE,
+ nouni=FALSE)
Error in plot(lmr$limits, xlab = xlab, ylab = ylab, type = "n", font.lab =
2) :
object "lmr" not found
> grid()
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new has not been called yet
> par(xpd=TRUE)
> legend(1.15,1.05,c("LmL*","GEV","GLO","GNO","GPA","PE3","EXP","GUM","UNI","N"),
lty=c(1,2,1,2,2,1,NA,NA,NA,NA),col=c(8,1,6,4,...