Hello everyone,
I am trying to plot a boxplot but am coming up with the error :
"could not find function dat" I have used the following code.
dat<-read.table(file="C:\\Documents and
Settings\\...txt",header=T,row.names=1,blank.lines.skip=F,na.strings="NA")
file.show(file="C:\\Documents and Set
Wacek Kusnierczyk wrote:
> Ken Liu wrote:
>
>> Hi,
>>
>> I don't understand why this doesn't work:
>>
>> matTest <- matrix(nrow=3, ncol=3)
>> testMove <- function(I, J){
>> for(i in 1:I){
>> for(j in 1:J){
>> matTest[i, j] <- i+j
>> }
>> }
>> }
>> testMove(2,
Ken Liu wrote:
> Hi,
>
> I don't understand why this doesn't work:
>
> matTest <- matrix(nrow=3, ncol=3)
> testMove <- function(I, J){
> for(i in 1:I){
> for(j in 1:J){
> matTest[i, j] <- i+j
> }
> }
> }
> testMove(2, 3)
> matTest
>
> Why the elements of the matr
Dear Dr. Andrew Robinson:
Thanks for your reply. In my data, subject is nested within sequence.
According to Dr. Christoph's reply, I have change the sequence data.
It seems not work in R. However, I am sure that I run the same data with
GLM in SPSS that I posted in first time. I really do not
I wish to draw a graph representing multiple series (sets of x,y
points). Each series has its own label and points within each series
are joined by a line ordered by their X cooridnate.
I would also like a legend automatically showing which each series is.
Which high-level command can serve this
In a generalized linear model with k covariates, there are 2(kth power) - 1
possible models (excluding interactions).
Awhile ago a posting to R-help suggested Model Selection and Multimodel
Inference, 2nd ed, by Burnham and Anderson as a good source for
understanding model selection. They recommen
Hi,
I don't understand why this doesn't work:
matTest <- matrix(nrow=3, ncol=3)
testMove <- function(I, J){
for(i in 1:I){
for(j in 1:J){
matTest[i, j] <- i+j
}
}
}
testMove(2, 3)
matTest
Why the elements of the matrix matTest are still NA? How could I fix it
Hello,
I have a dataframe
ID1 ID2
A1B3
A1B4
A1B3
A1B3
A2B1
A2B1
A2B4
A3B2
A3B2
A5B1
A5B1
A5B6
A5B4
A6B2
I want to add extra columns to the dataframe CountID1 and CountID2 which is
the actual count of values such as A1 etc
ie
ID1
Hi,
I would like to convert a character vector
xxx <- c("1/2", "1/4")
to
yyy <- c(0.5, 0.25)
, but as.numeric didn't work for me. Could anyone give me a hint please?
Thanks,
Ken
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/l
Hello everyone,
I am learning about copulas and also do some MATLAB/R coding to get
better understanding of how copulas work.
Recently I have started coding simple copula-GARCH models, that is I
fit say AR(1)-GARCH(1,1)-normal models to univariate time series, and
then I want to fit the copula (tw
I tried the "add=TRUE" but get
"Warning messages: 1: parameter "add" could not be set in high-level plot()
function"
Josh
HBaize wrote:
>
>
> Josh,
> Check into "add=TRUE" :-)
>
> All you need to do is insert "add=TRUE" to the second
> chart to superimpose it on the first chart. You might
Hi, basically I am trying to create a grouped bar graph with each group a
different color and a bar in each group to have shading lines. Basically
combine the 2 graphs created below.
Thanks,
Josh
data(HairEyeColor)
a <- as.table( apply(HairEyeColor, c(1,2), sum) )
a1<-a[1:2,]
par(mfcol=c(1,2),
i have a vector with a string of number
e.g
[1] 0113001 001130011000 001130012000 001130013000 001130016000
[6] 001130018000
i want a vector with the same numbers except with the last three digits of
every factor cut off.
e.g
[1] 01130010 001130011 001130012 001130013 001130016
[6] 0011
Jim,
In fact, if I click "stop" the for() looping and stop, and I need to
continue on the for().
By other side, is there a way of I ask for the user "acquire point" (with a
dialog box with Yes or No options), and if the user anwer Yes I collect the
points, otherwise I go for the next step of for()
Thanks Jim.
I included your suggestion on the script and run fine.
But how can I skip (record X and Y as NULL) on some steps?
On this example it don´t occour, but when working with real data I will need
bypass some acquisitions. Is there a way of do it on a for() looping? I
noticed that if I click
?locator
On Fri, Jun 20, 2008 at 11:25 PM, milton ruser <[EMAIL PROTECTED]> wrote:
> Dear all,
>
> I need to run a interactive procedure where the user
> will need click on the screen (over a XY plot)
> and I need to record the XY coordinate which the
> user clicked. Roughly I wrote a short code b
Dear all,
I need to run a interactive procedure where the user
will need click on the screen (over a XY plot)
and I need to record the XY coordinate which the
user clicked. Roughly I wrote a short code below.
You see that I suppose that the user will choose
four coordinates inside the region of in
Is this what you were trying to do?
See intercept model and anova below.
HTH
Steve McKinney
> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
> On Behalf Of [EMAIL PROTECTED]
> Sent: Friday, June 20, 2008 3:47 PM
> To: [EMAIL PROTECTED]
> Subject: [R] omnibus LR i
Hi Anh,
I don´t know if I understood your point fine.
I generate a scatterplot, and open it on adobe photoshop 7.0 with tranparent
background.
setwd("c:\\temp")
x<-runif(100)
y<-rnorm(100)
png("transparent_scatterplot.png", 800, 600, bg="transparent")
plot(y~x)
dev.off()
I hope this help,
mil
Hi all,
I'm putting a few plots together and wondering what format would be best to
export a few scatter plots to Illustrator to make a figure. I'm thinking
about overlaying some plot in Illustrator, so the export file type has to be
transparent for Illustrator (version 10).
I tried PNG and TIFF, b
Most helpful Gabor,
Many thanks,
Denis
Le 08-06-20 à 18:58, Gabor Grothendieck a écrit :
We construct a times object by replacing the letter h with
a : and then pasting a :00 on the end. Then replace any occurrence
of :: with :00: . Its now in the format that times recognizes so we
can
ju
We construct a times object by replacing the letter h with
a : and then pasting a :00 on the end. Then replace any occurrence
of :: with :00: . Its now in the format that times recognizes so we can
just convert that to times and apply hours() and minutes() to get
the components:
> library(chron)
Denis Chabot wrote:
> Hi,
>
> Simple question, but I did not figure out how to find the answer on my
> own (wrong choice of keywords on my part).
>
> I have a character variable for time of day that has entries looking
> like "6h30", "7h40", "12h25", "23h", etc. For the sake of this
> message, say
If one estimates a model using multinom, is it possible to perform the
omnibus LR test ( the analogue to omnibus F in linear models ) using
the output
from multinom ? The residual deviance is there but I was hoping I could
somehow pull out the deviance based on just using an intercept ?
Sample
Denis Chabot wrote:
> Hi,
>
> Simple question, but I did not figure out how to find the answer on my
> own (wrong choice of keywords on my part).
>
> I have a character variable for time of day that has entries looking
> like "6h30", "7h40", "12h25", "23h", etc. For the sake of this
> message, say
Hi,
Simple question, but I did not figure out how to find the answer on my
own (wrong choice of keywords on my part).
I have a character variable for time of day that has entries looking
like "6h30", "7h40", "12h25", "23h", etc. For the sake of this
message, say
h = c("3h30", "6h30
You could try using the arguments type, lwd and lend in the call to
plot(). For example:
plot(1:10, type="h", lend=2, lwd=10)
points((1:10)*1.1, type="b")
type="h" creates vertical lines under each observation, lwd controls the
thickness of the lines, and lend=2 draws square ends on the lines
Hi Franz:
we have a web service that will get you the Pacific. Look at http://
coastwatch.pfel.noaa.gov/erddap/tabledap/pmelWOD5np.html it will
show you how to use form the URL request, and by changing the file
ender you can change the format.
To use in R, you would so something like (
Kevin J. Thompson wrote:
> hi,
>
> my 0.2$ the rpy python module is excellent, in addition to those Wacek
> mentioned.
>
> another free alternative, particularly for graphics is scilab:
> http://www.scilab.org/
>
>
for scilab there is the rscilab module, so that we are with r agai
Well perhaps we can take the mystery of why it work for me, but not you, off
line :-)
I'm using R 2.6.1 on a WinXP platform.
You could try just using shades of color like this:
data(HairEyeColor)
a <- as.table( apply(HairEyeColor, c(1,2), sum) )
a1<-a[1:2,]
barplot(a1,
type="n",
As an alternative to the other suggestions,
I've found it just as easy to make the bar plot using plot() .
Assuming I've run hist()->sudh, then do
plot(sudh$breaks[1:length(sudh$breaks)-1],sudh$counts,type='h',lwd={pick_a_width_you_like))
Then it's easy to drop some scatterplot points or lines
Has anyone written a script or function to read data from NODCs World
Ocean Database files?
(I know there are simple Fortran and C programs to read these files, but
the output is not suitable for easy analysis)
Thanks, Franz
_
Dr. Franz J. M
Hi R user,
I have a question about "nlmer". Can I specify the multilevel random
effects in the the nlmer? For example, level 1 is "hospital" and level
2 is patient, so
nlmer(response~SSfol(Dose,Time,lke,lka,lcl)~(lke+lka+lcl|hospital)~(lke+lka+lcl|patient%in%hospital), data=health,
start=c
hadley wickham wrote:
2008/6/20 [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
If you do nothing to your code, in 18 months time its performance will
have doubled because computers will have become faster. Your code
will not get easier to understand by itself.
Very nicely put .. and true too!
__
There is an example in the examples section of ?xyplot.zoo in the
zoo package of using panel.axis. It works largely the same way even if
you don't use zoo.
On Fri, Jun 20, 2008 at 6:06 AM, Henning Wildhagen <[EMAIL PROTECTED]> wrote:
> Hello list,
>
> i am trying to plot a continous variable y ag
hi,
my 0.2$ the rpy python module is excellent, in addition to those Wacek
mentioned.
another free alternative, particularly for graphics is scilab:
http://www.scilab.org/
thanks,
kevin
- Original Message -
From: Wacek Kusnierczyk <[EMAIL PROTECTED]>
Date: Friday, June 20,
On 6/20/08, Henning Wildhagen <[EMAIL PROTECTED]> wrote:
> Hello list,
>
> i am trying to plot a continous variable y against a "date" variable, both
> in one dataframe named "df", using a code like this
>
> library(lattice)
> plot1<-xyplot(y~date, data=df, type="b")
>
> "date" is of class "Da
Greetings,
I have stumbled across some unexpected behavior (potential a bug) in, what I
suspect to be R's (2.6.2 on Ubuntu Linux) t.test function; then again the
problem may exist in my code. I have shutdown R and started it back up,
re-run the code and re-experienced the error. I have searched on
for many tasks, gnu octave (a 'matlab clone', no offense to gnu folks
intended) is quite sufficient, and *free* (+ open source). you can run
some of matlab code in octave.
you should also check if sage (http://www.sagemath.org/) can do the job
for you, it's stuffed with all sorts of maths utiliti
Josh,
Check into "add=TRUE" :-)
All you need to do is insert "add=TRUE" to the second
chart to superimpose it on the first chart. You might also
consider making the second bar a different shade of color
rather than using shadding lines, then it would only be one
plot.
data(HairEyeColor)
a
The easy way around that is to create an account, "Mathworks", with a
common group that all who will use MatLab belong, then su - Mathworks
should satisfy the license manager.
Clint BowmanINTERNET: [EMAIL PROTECTED]
Air Dispersion Modeler INTERNET: [EMAIL P
"Shubha Vishwanath Karanth" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Can I get a comparison between R and MATLAB? How is R efficient than MATLAB?
Or what are the weaknesses of R compared to MATLAB?
Don't forget to compare licenses and cost. Matlab's rigid and unreasonable
l
On Fri, Jun 20, 2008 at 11:33 AM, Ben Fairbank <[EMAIL PROTECTED]> wrote:
> I bogged down about half way through reading the Green Book, in part
> because it became increasingly difficult to understand how some of the
> ideas related to R, as opposed to S (which I have not used). Does any
> reader
Stefan Th. Gries gmail.com> writes:
>
> Hi all
>
> I have a question regarding the Fligner-Killeen test. I am using
>
> - a PC with Windows XP (Build 20600.xpsp080413-2111 (Service Pack 3);
> - the following R version:
> > sessionInfo()
> R version 2.7.0 (2008-04-22)
> i386-pc-mingw32
>
> I h
I bogged down about half way through reading the Green Book, in part
because it became increasingly difficult to understand how some of the
ideas related to R, as opposed to S (which I have not used). Does any
reader know whether there is a document that points out differences
between S and R that
## Create directory with unique name based on values of x and y
dir.create(paste(PathName, x,"_",y,sep=""))
Yasin Hajizadeh wrote:
>
> Hi all
>
> I have 2 loops with 2 counters, say outer loop counter is X and inner
> loop counter is Y. In outer loop a data file with known number of
2008/6/20 hadley wickham <[EMAIL PROTECTED]>:
> 2008/6/20 [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>> On 20 июн, 11:06, Wacek Kusnierczyk
>> <[EMAIL PROTECTED]> wrote:
>>> the result may be that the more beautiful the code, the more the performance
>>> sucks.
>>
>> Sad but true.
>
> If you do nothing
on 06/20/2008 10:04 AM hadley wickham wrote:
If you do nothing to your code, in 18 months time its performance will
have doubled because computers will have become faster. Your code
will not get easier to understand by itself.
I suspect a good "fortunes" candidate...
:-)
Marc
_
You appear to have missed
https://stat.ethz.ch/pipermail/r-help/2008-June/165435.html
On Fri, 20 Jun 2008, Nuno Prista wrote:
Dear all,
I still need help (I am a newbie to R).
I looked on the plotmath help and could not find how Unicode can be used.
And I am in a Windows platform which I d
Hi all
I have a question regarding the Fligner-Killeen test. I am using
- a PC with Windows XP (Build 20600.xpsp080413-2111 (Service Pack 3);
- the following R version:
> sessionInfo()
R version 2.7.0 (2008-04-22)
i386-pc-mingw32
I have a vector LENGTH and a factor RELATION that are distributed
Dear all,
I still need help (I am a newbie to R).
I looked on the plotmath help and could not find how Unicode can be used.
And I am in a Windows platform which I don't know if it is relevant. Can
anyone help? Here is a simple example
plot(1:10,1:10)
can anyone provide the code to insert a "
2008/6/20 [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> On 20 июн, 11:06, Wacek Kusnierczyk
> <[EMAIL PROTECTED]> wrote:
>> the result may be that the more beautiful the code, the more the performance
>> sucks.
>
> Sad but true.
If you do nothing to your code, in 18 months time its performance will
hav
Of course :) - here you go...
http://www.nabble.com/file/p18028420/Data.txt Data.txt
The data is tab-separated
Thanks for the reply
--
View this message in context:
http://www.nabble.com/Plotting-barplot-and-scatterplot-on-same-device---x-axis-problem-tp18025066p18028420.html
Sent from the R
On 20 июн, 11:06, Wacek Kusnierczyk
<[EMAIL PROTECTED]> wrote:
> the result may be that the more beautiful the code, the more the performance
> sucks.
Sad but true.
Andrey
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-hel
Gundala Viswanath gmail.com> writes:
> I'm aware of the need to include lattice library.
> I just didn't show it.
Examples should be complete and self-running, as the posting guide says.
> However my code still cant' produce the same results
> as yours.
>
> My data.mat contain this form of out
> And if you think inches are bad, check out "points".
>
Not to mention "pints"
Cheers,
-p
--
O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+
On Fri, 2008-06-20 at 11:26 +0100, Prof Brian Ripley wrote:
> ...
> In base graphics there are a very few par()s that use inches (and I am
> pretty sure that comes from the US unit as used in S, not the 'Imperial'
> one -- see e.g. Wikipedia). But those are rarely used.
>
My recollection of the
On Fri, 2008-06-20 at 01:39 -0700, Thomas Pedersen wrote:
> Hi R-users
>
> I'm a relative newbie and uses R mostly for graphical purpose. I have a
> layout problem when plotting a scatterplot and a barplot using
> par(new=TRUE). The baseline of the x-axis is not positioned equal for the
> two plot
On Wed, 2008-06-18 at 11:49 +0200, Agustin Lobo wrote:
> Hi!
>
> I have a bunch of (mainly class) R scripts that I would
> like to convert into html pages (although if someone
> thinks that what I want to do is easier with latex or pdf,
> please tell me).
>
> Considering the format of my files, h
Hi,
Apologies in advance if this has been asked before, but I couldn't find
quite the same question
I'm trying to assign multiple values from a list into an environment. At the
moment, I'm doing this using 'mapply' but finding it slower than I would
like.
Is there a (quicker) function that
Zornitsa Luleva gmail.com> writes:
>
> Hi,
>
> I am using the mle2 method of the package 'bbmle'. The method is calling as
> far as I understood it the optim method "L-BFGS-B" (this is the method I
> use). The latter one allows the user to impose box constraints on the
> variables, i.e. to giv
"sumit gupta" <[EMAIL PROTECTED]> napsal dne 20.06.2008 14:44:52:
> Hii..
>
> Could you please tell me how to draw 3D histogram in R
>
> I have a 20X3 matirx. Now I want 2 of the variable on X and Y axis .And
Height
> of the bar should denote the value of third variable.
See scatterplot3d, ima
Maybe I'm missing something, but where is the 3D here?
My tip is hist3d in package rgl. But there might be others,
it might worth to search the archive, I remember seeing this
question once.
Gabor
On Fri, Jun 20, 2008 at 08:55:36AM -0400, Richardson, Patrick wrote:
> Try
>
> ?hist
>
> -a
I read the Wizard Book too. Absolutely classic! I agree about paying attention
to performance, of course. Lisp programmers bend over backwards to write
tail-recursive functions for similar performance reasons. So you have to pay
attention to the language's idiosyncracies. But the time spent codi
Actually, have a look at the rgl package and this link
http://www2.warwick.ac.uk/fac/sci/moac/currentstudents/peter_cock/r/3d_bar_chart/
It points to bar charts, but there is some valuable info on 3D histograms as
well.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED
Maybe I missed it, but I haven't seen in this tread mention of
Venables and Ripley (2000) S Programming (Springer). I found it
interesting and useful, though I have not used it as much as MASS --
partly because it is more specialized and it's coverage is not as broad.
Spencer
hadl
on 06/19/2008 11:28 PM Rolf Turner wrote:
On 20/06/2008, at 4:07 PM, Moshe Olshansky wrote:
If you know the value of k then you could do the following:
goodNames <- paste("V",1:k,sep="")
ind <- which(colnames(df) %in% goodNames)
df[,ind]
(where df is your dataframe).
P.S. I won't be surpris
Try
?hist
-and-
?plot.histogram
You should find what you need there.
Cheers,
Patrick
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sumit gupta
Sent: Friday, June 20, 2008 8:46 AM
To: r-help@r-project.org
Subject: [R] 3D histogram
Hii..
Could anyo
Hii..
Could anyone please tell me how to draw 3D histogram in R
I have a 20X3 matirx. Now I want 2 of the variable on X and Y axis .And
Height of the bar should denote the value of third variable.
Thanx
Sumit
[[alternative HTML version deleted]]
__
Does this give you the results you are expecting:
> m <- c(0.3,0.3,0.3,0.1,0.1,0.5,0.5,0.5,0.5,0.15,0.15,0.3,0.5,0.8)
> m > 0.2
[1] TRUE TRUE TRUE FALSE FALSE TRUE TRUE TRUE TRUE FALSE FALSE
TRUE TRUE TRUE
> m.rle <- rle(m > 0.2)
> offsets <- 1 + c(0, head(cumsum(m.rle$lengths), -1))
>
> However, on a more fundamental "programming philosophy" note, the fact
> that R does not allow multiple references to one object is a limitation.
> One of the fundamental principles of good programming is that there
> should be a one-to-one correspondence between instances in the program
> and ob
On Fri, Jun 20, 2008 at 2:47 AM, Anh Tran <[EMAIL PROTECTED]> wrote:
> Thanks. I think I've got it. However, the density is plotted, not the
> frequency. Is there a way to convert the density back to frequency.
> Thanks a bunch.
>
>
an easy answer is that hist returns an object which you plot in a
On Fri, 2008-06-20 at 09:09 -0200, Alberto Monteiro wrote:
> Philip Rhoades wrote:
> >
> > This is a bit confusing - as far as I can see, ALL the pars use
> > inches? I understand the US effect but shouldn't Metric units be
> > supported directly?
> >
> That's one of my complains, but it seems
Is there anyway you could include the data so we can see what the problem
is- I am getting better at this code reading stuff, but it reduces my time
if I can just copy it into my R session and then fiddle.
thanks
Stephen
On Fri, Jun 20, 2008 at 4:39 AM, Thomas Pedersen <[EMAIL PROTECTED]> wrote:
?strwrap
> cat(strwrap("This is a very long character and I want to print it on several
> lines. This is a very long character and I want to print it on several
> lines.", width=40),sep="\n")
This is a very long character and I
want to print it on several lines. This
is a very long character and
Michael Pearmain wrote:
> Thanks for the reply Peter,
>
>
>> I did just see that i had put the first error message,(agreed rather an
>> obvious error) in and not the second i received
>>
>> Warning message:
>> In asin(sqrt(yF[i])) : NaNs produced
>>
Ah. Notwithstanding other remarks, that o
Philip Rhoades wrote:
>
> This is a bit confusing - as far as I can see, ALL the pars use
> inches? I understand the US effect but shouldn't Metric units be
> supported directly?
>
That's one of my complains, but it seems that this will take time.
I don't believe it would be too hard to impleme
On 20/06/2008 4:09 AM, Norbert NEUWIRTH wrote:
dear userRs,
I am deeply ashamed asking you this very basic question, but I did neither get it online nor by the S/R-literature I have.
I simply want to plot the values of a COUPLE of vectors within one graph - in
concrete a couple of time serie
On 20/06/2008 6:41 AM, Philip Rhoades wrote:
Prof Brian Ripley,
Prof Brian Ripley wrote:
On Fri, 20 Jun 2008, Philip Rhoades wrote:
People,
It appears that one has to use Imperial measurements in plot
parameters? I can't find any info on using metric units . .
In package grid you can use
Thanks for the reply Peter,
> I did just see that i had put the first error message,(agreed rather an
> obvious error) in and not the second i received
>
> Warning message:
> In asin(sqrt(yF[i])) : NaNs produced
>
> The reason i'm looking at this is advert exposure True and False.
>
> I'm inspecti
Prof Brian Ripley,
Prof Brian Ripley wrote:
On Fri, 20 Jun 2008, Philip Rhoades wrote:
People,
It appears that one has to use Imperial measurements in plot
parameters? I can't find any info on using metric units . .
In package grid you can use several different units.
When I search th
On Fri, 20 Jun 2008, Philip Rhoades wrote:
People,
It appears that one has to use Imperial measurements in plot parameters? I
can't find any info on using metric units . .
In package grid you can use several different units.
In base graphics there are a very few par()s that use inches (and
playwith package version 0.8-55 is now on CRAN.
It provides a GTK+ interface for interacting with R plots.
Screenshots of some examples are online at:
http://code.google.com/p/playwith/wiki/Screenshots
Changes in Version 0.8-55
o argument `parameters`: automatically constructs
widgets to c
Michael Pearmain wrote:
> I'm having trouble creating a looping variable and i can't see wher ethe
> problem arises from any hep gratfully appreciated
>
> First create a table
>
> x<-table(SURVEY$n_0,exposed)
>
>> x
>>
> exposed
>False True
> Under 16241
>
On Fri, Jun 20, 2008 at 09:06:24AM +0200, Wacek Kusnierczyk wrote:
> Simon Blomberg wrote:
> > I try to use a functional programming style. I define functions within
> > functions when it is helpful in terms of information hiding. I avoid
> > writing functions with side-effects as much as possible,
Hello list,
i am trying to plot a continous variable y against a "date" variable, both
in one dataframe named "df", using a code like this
library(lattice)
plot1<-xyplot(y~date, data=df, type="b")
"date" is of class "Date", of course, format="%d.%m.%Y", and spans two
calendar years. The proble
People,
It appears that one has to use Imperial measurements in plot parameters?
I can't find any info on using metric units . .
Thanks,
Phil.
--
Philip Rhoades
Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275)
GPO Box 3411
Sydney NSW 2001
Australia
E-mail: [EMAIL PROTECTED]
I'm having trouble creating a looping variable and i can't see wher ethe
problem arises from any hep gratfully appreciated
First create a table
x<-table(SURVEY$n_0,exposed)
> x
exposed
False True
Under 16241
16-19 689
20-24 190 37
25-34 5
Check out 'POSIXlt'. This should provide a hint as to how you can do it:
> ?as.POSIXlt
> x <- as.POSIXlt('2008-03-04 11:00')
> x
[1] "2008-03-04 11:00:00 GMT"
> unlist(x)
sec min hour mday mon year wday yday isdst
0 011 4 2 108 263 0
> ?POSIXlt
> myDat
Hi R-users
I'm a relative newbie and uses R mostly for graphical purpose. I have a
layout problem when plotting a scatterplot and a barplot using
par(new=TRUE). The baseline of the x-axis is not positioned equal for the
two plotting functions (see picture) and I have been unable to find out how
t
[EMAIL PROTECTED] wrote:
> Hi Dear R users,
>
> I check help(Syntax) but I still don't know how to use :: and ::: and
> when I should use it. Can anyone give me a answer?
>
> Thanks in advance
>
?`::`
vQ
__
R-help@r-project.org mailing list
https://sta
Hi Dear R users,
I check help(Syntax) but I still don't know how to use :: and ::: and
when I should use it. Can anyone give me a answer?
Thanks in advance
Chunhao Tu
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-he
Norbert NEUWIRTH univie.ac.at> writes:
>
> I am deeply ashamed asking you this very basic question, but I did neither get
it online nor by the
> S/R-literature I have.
>
> I simply want to plot the values of a COUPLE of vectors within one graph - in
concrete a couple of time series, a
> couple
Hey,
I'm new to R but familiar with other programming languages.
Basically, I want to store an array of dates. For each of these dates I
want to store only the day of the week and the hour. So for example:
"Monday 12" would be Monday at 12 o'clock and "Tuesday 20" would be Tuesday
at 8 p.m.
Al
On Fri, 20 Jun 2008, Dieter Menne wrote:
Nuno Prista fc.ul.pt> writes:
Can anyone of you tell me how to write a "nabla" symbol in an R graph?
We need to know what is meant by 'nabla':
http://en.wikipedia.org/wiki/Nabla_symbol tries to disambiguate.
I have not tested it,
so others are
dear userRs,
I am deeply ashamed asking you this very basic question, but I did neither get
it online nor by the S/R-literature I have.
I simply want to plot the values of a COUPLE of vectors within one graph - in
concrete a couple of time series, a couple of distributions and some stacked
a
> have you read the docs?
Yes, I'm reading the manual "An Introduction to R"..
> start with ?`[`
Ok...I haven't read it.
Thanks.
Alfredo
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting gu
Hi Dieter,
I'm aware of the need to include lattice library.
I just didn't show it.
However my code still cant' produce the same results
as yours.
My data.mat contain this form of output
> print(data.matrix)
11145 3545 8951 11097 16599 11100
8566 .. (upto 100
Peter Dalgaard biostat.ku.dk> writes:
> Notice that paste()ing two expressions does not yield an expression
> result. Instead, it deparses both arguments and gives a character string.
May I suggest to add this sentence to the expression documentation? That section
is VERY terse.
Dieter
__
hadley wickham gmail.com> writes:
>
> > Note that the R-project page (www.r-project.org)
> > and CRAN are two "things", albeit closely related.
> > CRAN is for "DOWNLOAD"ing, including free contributed docs.
> > So that is the main reason, "contrib.docs" are not there in
>> the www.r-projec
1 - 100 of 102 matches
Mail list logo