Displaying 20 results from an estimated 500 matches similar to: "Plot segments with different colors"
2008 Mar 03
3
Plot using colors
Dear R users,
I have a problem since I try to plot my datas with different colors.
plot(tvar, var, xlab="zeit [s]",ylab="Variation [%]", col = ifelse(var <=
varstability, 'green','red'))
this works well!
But since I add a type="l" to my plot, it will color all the plot with
green!!!
Is there any solution? I avoid to use teachingDemos.
Thanks.
--
2008 Jul 04
2
create a zero matrix & fill
Dear R user,
I have written a function which returns max,min and variation of a power
(see below)
Power is a given matrix(1,n)
I call the function
>Variation<-VAR(p,(n-deltat))
Now the problem is when I want plot(Results[1],Results[2]). Not possible!
I become the following error (in english it means: Error in
as.double.default(x) :Object cannot be transformed in double)
>
2008 Jun 30
4
Add comments on plot window
Dear R users,
Is it possible to add comments in a plot window?
I have 3 plots -> this plots have to be commented on same window
Is possible to do the following :
http://www.nabble.com/file/p18193822/plot%2526comments.JPG
plot%26comments.JPG
I don't know how to do it. Maybe plot.window or something like that.
Any suggestions??
Thanks in advance,
Adel.
--
View this message in context:
2004 Dec 13
3
Advice on parsing formulae
Dear list
I would like to be able to group terms in a formula using a function that I
will call tvar(), eg. the formula
Y ~ 1 + tvar(x:A) + tvar(z) + u + tvar(B) + tvar(poly(v,3))
where x,u and v are numeric and A and B are factors - binary, say.
As output, I want the model.matrix as if tvar had not been there at all. In
addition, I would like to have information on the grouping, as a vector
2008 Jul 18
1
re ad and check table
Dear R users,
I want to read a file like following :
if it is a table then z <- read.table(pathname, dec=".", header=TRUE)
else if it's not a table (image,doc,...) then send an error or something
like that
acually I have a read.table in the beginnig of my R code, and if my data is
not a table I become in my R console : fail in scan.
So the question is how to check the nature of
2000 Jul 19
1
How to use tcltk?
Hallo Tk experts,
the Tcl/Tk package allows to define very nice widgets for starting
R functions, for printing results and for interactive parameter input.
tkdensity.R and tkttest.R demonstrate this and both demos explain
how some of the tk functions can be used.
For constructing new widgets I would like to see further examples
showing Tcl/Tk package in action. Therefore my question:
Is there a
2017 Jul 11
2
Extracting sentences with combinations of target words/terms from cancer patient text medical records
Hello All,
I need some help figuring out how to extract combinations of target words/terms from cancer patient text medical records. I've provided some sample data and code below to illustrate what I'm trying to do. At the moment, I'm trying to extract sentences that contain the word "breast" plus either "metastatic" or "stage IV".
It's been some
2017 Jul 13
1
Extracting sentences with combinations of target words/terms from cancer patient text medical records
Hi Robert,
Thank you for your reply. An attempt to solve this via a regular expression query is particularly helpful. Unfortunately, I don't have much time to play around with this just now. Ultimately though, I think I would like to implement a solution something along the lines of what you have done. I have a book on regular expressions that I am now starting to read. In the meantime, the
2008 Jul 04
1
initialize a matrix
Dear R users,
I'm trying to write a function which returns minimum,maximum,mean of a
vector(power)
I've done the following :
VAR<-function(power,length){
for(i in tml:length)){
tvar[i]<-i
pmean[i]<-mean(power[i:i+deltat])
pmin[i]<-min(power[i:i+deltat])
pmax[i]<-max(power[i:i+deltat])
varmax[i]<-100*(pmax[i]-pmean[i])/pmean[i]
2017 Jul 11
0
Extracting sentences with combinations of target words/terms from cancer patient text medical records
Have you looked at the CRAN Natural Language Processing Task View? If not,
why not? If so, why were the resources described there inadequate?
Bert
On Jul 11, 2017 10:49 AM, "Paul Miller via R-help" <r-help at r-project.org>
wrote:
> Hello All,
>
> I need some help figuring out how to extract combinations of target
> words/terms from cancer patient text medical
2017 Jul 12
2
Extracting sentences with combinations of target words/terms from cancer patient text medical records
Hi Bert,
Thanks for your reply. It appears that I didn't replace the variable name "sampletxt" with the argument "x" in my function. I've corrected that and now my code seems to be working fine.
Paul
________________________________
From: Bert Gunter <bgunter.4567 at gmail.com>
Cc: R-help <r-help at r-project.org>
Sent: Tuesday, July 11, 2017 2:00 PM
2008 Jul 04
0
RES: initialize a matrix
You have to put the tml in the function and deltat too.
like
VAR<-function(power,length,deltat,tml){
-----Mensagem original-----
De: r-help-bounces em r-project.org [mailto:r-help-bounces em r-project.org]Em
nome de mysimbaa
Enviada em: sexta-feira, 4 de julho de 2008 11:22
Para: r-help em r-project.org
Assunto: [R] initialize a matrix
Dear R users,
I'm trying to write a function
2017 Jul 12
0
Extracting sentences with combinations of target words/terms from cancer patient text medical records
Hi Paul,
Sounds like you have your answer, but for fun I thought I'd try solving your problem using only a regular expression query and base R. I believe this works:
> txt <- "Patient had stage IV breast cancer. Nothing matches this sentence. Metastatic and breast match this sentence. French bike champion takes stage IV victory in Tour de France."
> pattern <-
2008 Jul 01
2
if one of 4 conditions is not satisfied
I'm trying to do realize the following:
I have 4 condtions.
If all conditions are satisfied I will paste("PASS")
If any of these is not satisfied I will paste("FAIL"). But I have to paste
the corresponding failure.
ifelse is a good solution but for a 2 conditions. Maybe switch or something
like this.
Does anyone have an idea how to do?
Thanks in advance.
Adel
--
View
2010 Sep 05
2
Windows 7 64-bit clients with high latency
Hi,
Windows 7 64-bit clients have a very high latency (constantly rising) using of tinc. 32-bit clients are working with normal speed.
Does anyone have a solution for this problem?
Viele Gr??e
Dirk Krause
2009 Jul 26
0
Version 0.7 of package tsDyn, nonlinear time series
Hi
Version 0.7 of package tsDyn presented at useR! 2009 is now on CRAN,
extended with several new features.
The package tsDyn is aimed at estimating nonlinear time series models
which exhibit regime specific properties. The regime switching dynamics
can either be described by smooth transition (STAR and LSTAR) or
threshold effects (SETAR). The package furthermore offers nonlinear
models
2009 Jul 26
0
Version 0.7 of package tsDyn, nonlinear time series
Hi
Version 0.7 of package tsDyn presented at useR! 2009 is now on CRAN,
extended with several new features.
The package tsDyn is aimed at estimating nonlinear time series models
which exhibit regime specific properties. The regime switching dynamics
can either be described by smooth transition (STAR and LSTAR) or
threshold effects (SETAR). The package furthermore offers nonlinear
models
2008 Mar 27
2
strptime and plot(),lines()
Hello,
Im reading Data out of a Database.
#v+
rs <- dbGetQuery(con,"SELECT * ... )
attach(rs)
#v-
There ist a colum I convert into "Time".
#v+
> zeit<-strptime(datum,format="%Y-%m-%d %H:%M:%S");
> class(zeit)
[1] "POSIXt" "POSIXlt"
#v-
1.
A plot(zeit,money) plots the Data.
All i see on the x-achis are the Days.
I would like to see the
2005 Dec 01
1
Kalman Smoothing - time-variant parameters (sspir)
Dear R-brains,
I'm rather new to state-space models and would benefit from the extra
confidence in using the excellent package sspir.
In a one-factor model, If I am trying to do a simple regression where
I assume the intercept is constant and the 'Beta' is changing, how do
I do that? How do i Initialize the filter (i.e. what is appropriate to
set m0, and C0 for the example below)?
2008 Jul 14
1
eval.wih.vis
Hello,
I have an error since I run my R code. This error is :
Fehler in eval.with.vis(expr, envir, enclos) :
>
My code is:
#CONDITION1 : check if the right logfile is chosen
c1=log(z[,3],n)
if (c1==FALSE) {
plot(0:1,0:1,type = "n", axes=FALSE,xlab="",ylab="")
text(0.4,0.8,adj=0,paste("FEHLER"),col="red")