Displaying 9 results from an estimated 9 matches for "dovik".
2018 May 18
0
drc, ggplot2, and gridExtra
...id.arrange()
library(gridGraphics)
library(gridExtra)
grab <- function{
grid.echo()
grid.grab()
}
x <- rnorm(100, 1, 2)
y <- rnorm(100, 0, 0.5)
plot(x,y)
p <- grab()
a <- rnorm(20, 0, 1)
b <- rnorm(20, 1, 2)
plot(a, b)
q <- grab()
grid.arrange(p, q)
Best,
Eivind K. Dovik
Bergen, NO
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented,...
2018 May 18
3
drc, ggplot2, and gridExtra
I have dose response data I have analyzed with the 'drc' package.
Using plot() works great. I want to arrange my plots and source
data on a single page. I think 'gridExtra' is the usual package for
this.
I could use plot() and par(mfrow=...), but then I can't put the source
data table on the page.
gridExtra provides grid.table() which makes nice graphical tables. It
2018 May 02
0
Converting a list to a data frame
...thelist
# Creating the type-vector
type <- c()
for(i in 1:length(thelist)){
type <- c(type, rep(names(thelist)[i], sapply(thelist, nrow)[i]))
}
# Creating the data frame
df <- data.frame(type, do.call(rbind.data.frame, c(thelist, make.row.names
= FALSE)))
df
Kind regards,
Eivind K. Dovik
Bergen, NO
>
> --
> Kevin E. Thorpe
> Head of Biostatistics, Applied Health Research Centre (AHRC)
> Li Ka Shing Knowledge Institute of St. Michael's Hospital
> Assistant Professor, Dalla Lana School of Public Health
> University of Toronto
> email: kevin.thorpe at...
2018 May 01
0
How would I color points conditional on their value in a plot of a time series
You may also want to check this out:
plot(ttt, type = "p")
points(ttt, col = ifelse(ttt < 8, "black", "red"))
Eivind K. Dovik
Bergen, NO
On Tue, 1 May 2018, Christopher W Ryan wrote:
> Excellent! Worked like a charm. Thanks.
>
> --Chris Ryan
>
> On Tue, May 1, 2018 at 4:33 PM, William Dunlap <wdunlap at tibco.com> wrote:
>
>> The ts method for plot() is quirky. You can use the default met...
2018 May 01
2
How would I color points conditional on their value in a plot of a time series
Excellent! Worked like a charm. Thanks.
--Chris Ryan
On Tue, May 1, 2018 at 4:33 PM, William Dunlap <wdunlap at tibco.com> wrote:
> The ts method for plot() is quirky. You can use the default method:
>
> plot(as.vector(time(ttt)), as.vector(ttt), type = "p", col=ifelse(ttt<8,
> "black", "red"))
>
>
> Bill Dunlap
> TIBCO Software
2018 May 02
3
Converting a list to a data frame
..., B = data.frame( x=5:6, y=7:8 )
)
D <- data.frame( Type = names( L )
, stringsAsFactors = FALSE
)
D$data <- L
unnest(D, data)
#> Type x y
#> 1 A 1 3
#> 2 A 2 4
#> 3 B 5 7
#> 4 B 6 8
########
On Wed, 2 May 2018, Eivind K. Dovik wrote:
> On Wed, 2 May 2018, Kevin E. Thorpe wrote:
>
>> I suspect this is pretty easy, but I'm having trouble figuring it out.
>> Basically, I have a list of data frames such as the following example:
>>
>> list(A=data.frame(x=1:2, y=3:4),B=data.frame(x=5:6,y=7...
2018 May 02
8
Converting a list to a data frame
I suspect this is pretty easy, but I'm having trouble figuring it out.
Basically, I have a list of data frames such as the following example:
list(A=data.frame(x=1:2, y=3:4),B=data.frame(x=5:6,y=7:8))
I would like to turn this into data frame where the list elements are
essentially rbind'ed together and the element name becomes a new
variable. For example, I would like to turn the
2018 Apr 26
1
help with tdm matrix and knn
hello sir
im working on text classification using java and r programming
i start with exporting a document term matrix (tdm) from my java programme using corpus
and now i try to apply knn algorithem using the matrix and r
but i cant do that
any help sir
here my data
here my script
https://mega.nz/#!Q6J2ibAA!4PadiOKbP7rLodyiRrVsdKl-D2ZP7LYm0gaz94uBmF8
itry to post put icant whay!!
2018 May 01
4
Merging dataframes
Hi,
May I please ask how I do the following in R. Sorry - this may be trivial,
but I am struggling here for this.
For two dataframes (A and B), I wish to identify (based on a primary
key-column present in both A & B) -
1. Which records (rows) of A did not match with B, and
2. Which records of B did not match with A ?
I came across a setdt function while browsing, but when I tried