Displaying 20 results from an estimated 3000 matches similar to: "plot(hist.default(1:10,plot=F)) error."
2004 May 12
1
Problem with plot (PR#6875)
Hi!
Pinned the problem with plot down a bit. I can reproduce it with only 2 lines of R on my Windows XP machine.
(today reinstalled R1.9.0) and Bioconductor packages updated.
Can anyone reproduce this behaviour?
(I am surely reproducing this error only if library(ROC) is loaded at the beginning of the session.)
z:\devel\Paper2004\patrick3>Rterm
R : Copyright 2004, The R Foundation for
2010 Jun 07
1
Patch for legend.position={left,top,bottom} in ggplot2
Hi Hadley and everyone,
here's a patch for ggplot2 that fixes the behavior of
opts(legend.position={left,top,bottom}). If you try the following code
in an unmodified ggplot2
options(warn = -1)
suppressPackageStartupMessages(library("ggplot2"))
data <- data.frame(
x = c(1, 2, 3, 4, 5, 6),
y = c(2, 3, 4, 3, 4, 5),
colour = c(TRUE, TRUE, TRUE, FALSE, FALSE, FALSE))
2017 Sep 19
3
Graph f(x) = 1/x
Dear All: good morning
I am trying to graph the function y=f(x)=1/x over the interval (-5,5). But
I am getting an error message. Please see below.
I am getting the error message: *Error in xy.coords(x, y, xlabel, ylabel,
log) : *
* 'x' and 'y' lengths differ*
x
x <- seq(-5, 5, 0.01)
y < 1/x
plot(x,y, type='l', xlim=c(-5, 5), ylim=c(-5, 5), xlab = "x",
2008 Sep 04
1
Building a time series.
I have a need to build a time series and there are a couple of aspects about the time series object that are confusing me. First it seems that ts.union is not doing what I would expect. For example:
x0 <- rep(0,10)
x1 <- rep(1,10)
xt0 <- ts(x0, frequency=10)
xt1 <- ts(x1, frequency=10)
st2 <- ts.union(xt0, xt1)
> xt2
Time Series:
Start = c(1, 1)
End = c(1, 10)
Frequency = 10
2017 Sep 19
0
Graph f(x) = 1/x
On Tue, 19 Sep 2017, AbouEl-Makarim Aboueissa wrote:
> Dear All: good morning
>
> I am trying to graph the function y=f(x)=1/x over the interval (-5,5). But
> I am getting an error message. Please see below.
>
> I am getting the error message: *Error in xy.coords(x, y, xlabel, ylabel,
> log) : *
> * 'x' and 'y' lengths differ*
You have "y <
2009 Aug 07
3
How do I plot a line followed by two forecast points?
Good day all,
I'm trying to plot a continuous line plot, which is followed by two
forecast points eg. one forecast point is 12 months out, and another
24 months out from the last date of the line plot.
In my attempts so far, the second plot (the forecast points) is scaled
against a new axis scale, thus the two plots are not directly
comparable (I need the forecast points to be scaled
2017 Sep 19
1
Graph f(x) = 1/x
Dear Zeileis:
Thank you very much
abou
On Tue, Sep 19, 2017 at 4:13 AM, Achim Zeileis <Achim.Zeileis at uibk.ac.at>
wrote:
>
>
> On Tue, 19 Sep 2017, AbouEl-Makarim Aboueissa wrote:
>
> Dear All: good morning
>>
>> I am trying to graph the function y=f(x)=1/x over the interval (-5,5). But
>> I am getting an error message. Please see below.
>>
2011 Jul 25
1
Trouble with line of best fit
I don't usually do much with graphs in R, and this is my first time adding a
line of best fit. Hopefully this is an easy problem to solve.
I'm looking at a variable called soloKills along the range 5:28. Here are
all my commands, in script form:
range=5:28
graph=soloKills
title="Solo kill/death data"
xlabel="Number of deaths/1 game"
ylabel="Mean number of kills/1
2004 Jul 13
2
help with as.function
HI, sorry but i don't understand how to make a function with as.function()
formula<-"2+3*x"
formu<-as.symbol(formula)
> formu
2+3*x
formul<-as.function(alist(x=,formu))
curve(formul,1,5,col="blue")
Error in xy.coords(x, y, xlabel, ylabel, log) :
x and y lengths differ
> typeof(formul)
[1] "closure"
and not plot the curve function, Why?
2010 Jan 09
2
Plotting numeric values against non numeric items
Hi i want do a line graph.
My y axis contains numeric values. My x axis contains non numeric
statements.
This is what i want the graph to look like.
When i try to plot this graph on R it comes up with the following error
message:
"Error in plot.window(...) : need finite 'xlim' values
In addition: Warning messages:
1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by
2005 Oct 03
1
Error in xy.coords(x, y, xlabel, ylabel, log) : x and y lengths differ
I am currently trying to use R to construct a regression model to
explain output based on temperature. I have combined my output and temp
data into a notepad file. there is no problem with loading the data into
R.
> data.df
output temp
1 850 17
2 849 17
3 905 17
4 925 17
5 1043 19
6 1104 20
7 1097 18
8 979 19
9 926 18
10 1133 18
~~
~~
240 1124
2009 Jun 11
2
Tables without names
A table without names displays like a vector:
> unname(table(2:3))
[1] 1 1 1
and preserves the table class (as with unname in general):
> dput(unname(table(2:3)))
structure(c(1L, 1L), .Dim = 2L, class = "table")
Does that make sense? R is not consistent in its treatment of such unname'd
tables:
In plot, they are considered erroneous input:
>
2017 Nov 05
0
Change colour of line in logi.hist.plot
> On Nov 5, 2017, at 6:03 AM, G?ran Bergqvist <Goran.Bergqvist at jagareforbundet.se> wrote:
>
> I am using the function logi.hist.plot in package popbio. I want to change the colour of the probability line from the default red to black. I have not been able to find out how to do that.
If you look at the code for that function you see this line:
logi.curve <-
2008 Oct 20
2
error message when plotting survival curves
I am trying to plot survival curves using the following code as an example:
>rs1799964.coxph<-(coxph(Surv(sassurvmonths,status)~age+stage+rs1799964_TNFA,method="efron"))
>plot(rs1799964.coxph,lyt=c(1,3),xlab="Survival in Months",ylab="Proportion
Surviving")
I am gettingthe following error message:
>Error in xy.coords(x, y, xlabel, ylabel, log) :
2008 Jul 15
1
methods/namespaces/possible bug
Using
> methods("plot")
[1] plot.Date* plot.HoltWinters* plot.POSIXct*
[4] plot.POSIXlt* plot.TukeyHSD plot.acf*
[7] plot.data.frame* plot.decomposed.ts* plot.default
[10] plot.dendrogram* plot.density plot.ecdf
[13] plot.factor* plot.formula* plot.hclust*
[16] plot.histogram* plot.isoreg* plot.lm
[19] plot.medpolish*
2008 Mar 23
2
(no subject)
Is there any way to use more than one color or shape in the same plot. I would like to make the points different colors for various levels of a variable. I have tried a simple 'if' statement in the plot command, but I get an error message. Here is what I have tried and the error message I get: > plot(test, if(test[,1]<8) col="steelblue2" else col="wheat2")Error
2004 Oct 19
2
Changing the Y graph scale Maximum value.
Hello,
I am new to R and have read the documents related to graphics but have
not come across a description of how to change the maximum scale on a
graph. Below is sample code that sets up a plot window with a 0 Minimum
to 10 Maximum, X and Y coordinate system:
x <- c(1,2,3,4,5,6,7,8,9,10)
y <- c(1,1.5,2,2.5,3,3.5,4,4.5,5,5.5)
plot(0:10, 0:10, type = "n" )# setting up coord.
2010 Nov 27
3
How to load data file without attribute names?
Hi all,
I'm new to R and I'm struggling with loading a data file without attribute
names, like:
1,72,0,5.6431,28.199
1,72,0,12.666,28.447
1,72,0,19.681,28.695
1,72,0,25.647,28.905
It has no names for the columns nor the rows. I tried
data <- read.table(path,header = FALSE, sep = ",")
and it seems to work. But later, when I try qqnorm to plot the graph, it
gives me the
2010 Jul 17
2
Plot error
Hi guys,
I am a newbie to R, so apologies in advance.
I created this simple table in excel, saved in tab delimited .txt:
name value_1 value_2
1 bill 1 4
2 ben 2 2
3 jane 3 1
>test <-read.table("\path\to\file", sep="\t", header=TRUE)
>x <-c(seq["value_1"])
>y <-c(seq["value_2"])
2010 Sep 22
2
How to fix error: 'x' and 'y' lengths differ
Hi, im a student so still very new to R. Hope someone could help me out here
=)
They are 3 slug control products, bustaslug, product X and Y. Im ask to
explore the data by plot() and tapply(). But when i try to plot or use the
tapply command, it tells me that the x and y lengths differ. so im thinking
its because the data is unbalanced? Is there a simple command that i could
use to fix this?