Hi Ed,
While David's suggestion is correct, the change in par("usr") results from
your resetting the plot limits.
data(mtcars)
plot(mtcars$mpg, mtcars$hp)
par("usr")
[1] 9.46 34.84 40.68 346.32
par(new=TRUE)
plot(mtcars$mpg, mtcars$hp,col="red",axes=FALSE)
par("usr")
[1] 9.46 34.84 40.68 3
Pascal,
Oops. Thanks!
*David Katz*| IAG, TIBCO Spotfire
O: 1.541.203.7084 | M: 1.541.324.7417
On Mon, Sep 28, 2015 at 5:47 PM, Pascal Oettli wrote:
> You misspelled the web address. It is "R-project", not "R.project".
> Thus, the command line should be:
>
> install.packages("FlexBayes", re
On 29/09/15 14:58, li li wrote:
Hi all,
In R, is there a function for the cumulative distribution function
for multinomial distribution? I only see pmultinom and rmultinom which
are the prabability mass function and the function for generating
multinomial random variables respectively.
A mom
Hi all,
In R, is there a function for the cumulative distribution function
for multinomial distribution? I only see pmultinom and rmultinom which
are the prabability mass function and the function for generating
multinomial random variables respectively.
Thanks!
Hanna
_
On Sep 28, 2015, at 5:33 PM, Ed Siefker wrote:
> I'm trying to plot() over an existing plot() like this:
>
>> attach(mtcars)
>> plot(mpg, hp)
>> par(new=TRUE)
>> par("usr")
> [1] 9.46 34.84 40.68 346.32
>> plot(mpg, hp, col="red", axes=FALSE, xlim=par("usr")[1:2],
>> ylim=par("usr")[3:4], x
You misspelled the web address. It is "R-project", not "R.project".
Thus, the command line should be:
install.packages("FlexBayes", repos="http://R-Forge.R-project.org";)
Regards,
Pascal
On Mon, Sep 28, 2015 at 9:17 AM, Davidwkatz wrote:
> I tried to install FlexBayes like this:
>
> install.pac
I'm trying to plot() over an existing plot() like this:
> attach(mtcars)
> plot(mpg, hp)
> par(new=TRUE)
> par("usr")
[1] 9.46 34.84 40.68 346.32
> plot(mpg, hp, col="red", axes=FALSE, xlim=par("usr")[1:2],
> ylim=par("usr")[3:4], xlab="", ylab="")
> par("usr")
[1] 8.4448 35.8552 28.4544
Bert Gunter gmail.com> writes:
>
> Use ?uniroot to do it numerically instead of polyroot()?
>
> Cheers,
> Bert
> Bert Gunter
The problem with uniroot() is that we don't know how many intersections/
roots we might be looking for. With polyroot(), we know that there can
be at most 3 roots that
test1 <- (rbind(c(0.1,0.2),0.3,0.1))
rownames(test1)=c('y1','y2','y3')
colnames(test1) = c('x1','x2');
test2 <- (rbind(c(0.8,0.9,0.5),c(0.5,0.1,0.6)))
rownames(test2) = c('y2','y5')
colnames(test2) = c('x1','x3','x2')
lTest12 <- list( test1, test2)
namesRow <- unique( unlist( lapply( lTest12, ro
Thanks Giorgio, David and Rui
With the suggestions my problem was solved in different ways.
Best regards
Antonio
2015-09-28 15:52 GMT-03:00 Giorgio Garziano :
> Try this:
>
> X<-c("A","B","C","D","E")
> Y<-c(0,1,2,3,4)
>
> for (i in 0:3) {
> Y<-Y+i
> data<-data.frame(X,Y)
> fe.flag <- f
Dear R users,
I am trying to merge tables based on both their row names and column names.
My ultimate goal is to build a distribution table of values for each
combination of row and column names.
I have more test tables, more x's and y's than in the toy example below.
Thanks in advance for your
Dear Anton & Michael,
Thanks a lot for your nice suggestion,
Now its working
cheers :)
On Mon, Sep 28, 2015 at 1:24 PM, Michael Dewey
wrote:
> Dear Dileep
>
> What happens if you explicitly print it by wrapping the plot command in
> print( )
>
>
> On 28/09/2015 07:01, കുഞ്ഞായി kunjaa
Dear All,
Please have a look at the snippet at the end of the email.
Essentially, I am trying to combine google maps with ggplot2.
The idea is to simply plot some points, whose size depend on a scalar,
on a google map.
My question is how I can extend the map in the snippet below in order
to plot t
Try this:
X<-c("A","B","C","D","E")
Y<-c(0,1,2,3,4)
for (i in 0:3) {
Y<-Y+i
data<-data.frame(X,Y)
fe.flag <- file.exists("test.csv")
write.table(data, "test.csv", row.names = FALSE, col.names = !fe.flag,
sep=";", append = fe.flag)
}
[[alternative HTML version deleted]]
_
Hello,
ifelse is a vectorized version of if/else, you want the normal if/else.
if(file.exists(... etc ...)
[...]
else
[...]
Hope this helps,
Rui Barradas
Citando Antonio Silva :
> Dear R users
>
> I want to write a file that contains several data frames generated in a
> loop
> ing.
On Sep 28, 2015, at 11:31 AM, Antonio Silva wrote:
> Dear R users
>
> I want to write a file that contains several data frames generated in a loop
> ing.
> I also want the column names be written to file only when it is created in
> first loop.
>
> In the example below, when I run each line sep
Dear R users
I want to write a file that contains several data frames generated in a loop
ing.
I also want the column names be written to file only when it is created in
first loop.
In the example below, when I run each line separately without "for (i in
...) { }" it works, but when I run the lo
I'm not sure what you want when you refer to the "last value of f", but
perhaps this will help you out. I simplified your example since the other
parts of the code you submitted (par, grid, title, etc.) do not have
anything to do with your question.
# some fake data for f
f <- rnorm(20)
# save t
Here's one approach that works. I made some changes to the code you
provided. Full working example code given below.
library(reshape)
library(ggplot2)
library(dplyr)
dist1 <- matrix(runif(16), 4, 4)
dist2 <- matrix(runif(16), 4, 4)
rownames(dist1) <- colnames(dist1) <- paste0("A", 1:4)
rownames
library(quantmod)
getSymbols("YHOO")
chartSeries(YHOO, theme="white", type='line')
chartSeries(YHOO, theme="white", type='line', TA=NULL)
chartSeries(Cl(YHOO), theme="white", type='line')
chartSeries(YHOO, theme="white", type='line', name="")
chartSeries(YHOO, type='line', theme='white')
Hi all,
I want to plot with quantmode but I want to ommit levels on Lavel, showing
only Last Price, not the bands (in the case f.e. in Bollinger Bands) ¿Is it
Possible? And to ommit hide all legend?
I dont find docutmentation or example.
[[alternative HTML version deleted]]
Statistical Computing and Statistical Graphics Sections
American Statistical Association
The Statistical Computing and Graphics Award
The ASA Sections of Statistical Computing and Statistical Graphics have
established the Statistical Computing and Graphics Award to recognize an
individual or t
... (should have added)
However one might ask: Isn't this just a bit silly? The density()
function gives kernel density estimates (perhaps interpolated by
?approx -- see ?density) on as fine a grid as one likes, so why use
splines thereafter? And since these are density estimates -- i.e.
fitted ap
Use ?uniroot to do it numerically instead of polyroot()?
Cheers,
Bert
Bert Gunter
"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
-- Clifford Stoll
On Mon, Sep 28, 2015 at 9:17 AM, Ben Bolker wrote:
> Dario Strbenac uni.sydney.edu.au> writes:
It may be, but the documentation for kruskal() seems to have fallen behind
updates to the function. The kruskal() manual page indicates values returned by
the function that have no connection to what is actually returned and M is not
described at all.
There is another version of the test, Dunn
The brute force answer involves for loops or apply functions, with or without
defining your own functions for calculating terms. More optimized methods
usually require understanding the specific structure of the summations and
unwinding them with functions like expand.grid. For more specific hel
Dario Strbenac uni.sydney.edu.au> writes:
>
> Good day,
>
> I have two probability densities, each with a function determined
> by splinefun(densityResult[['x']],
> densityResult[['y']], "natural"), where densityResult is the
> output of the density function in stats.
> How can I determine all
Dear All,
I'm trying to write and evaluate an equation which involves multiple
summations but can't figure out how to do it.
I've an numeric vector r
r<-vector(mode = "numeric", length = m)
and I have multiple summations (for ex.) of the form:
[(sum from r[1]=0 to g(r[1])) (sum from r[2] =0 to
On Mon, Sep 28, 2015 at 9:19 AM, Jeff Newmiller
wrote:
> I am not necessarily referring to the business model (though many people
> asking this question are), but rather the install-to-bare-os deployment
> model that controls the user experience throughout. You typically need to
> install R as a
The kruskalmc() function in package pgirmess performs a multiple comparisons
analysis using the kruskal-wallis test. It indicates which pairs are
significantly different, but it does not summarize the results in a compact
letter display.
> library(pgirmess)
> kruskalmc(Heliocide~Treatment, dta
I am not necessarily referring to the business model (though many people asking
this question are), but rather the install-to-bare-os deployment model that
controls the user experience throughout. You typically need to install R as a
separate product and use it interactively to kick your "applic
On 28/09/2015 4:23 AM, Ali M. wrote:
I am new to R
And while learning the language inside the dev tools is easy and fun
I wonder how R applications are deployed and distributed to the typical
business users
Typically as web applications, rather than standalone executables.
I searched online
This was an FDA/SAS bargain a long while ago. SAS made the XPT format publicly available
and unchanging in return for it becoming a standard for submission. Many packages can
reliably read or write these files. (The same is not true for other SAS file formats, nor
is xport the SAS default.)
On Mon, Sep 28, 2015 at 8:15 AM, Jeff Newmiller
wrote:
> R is not designed as an application development programming language.
This is an interesting statement to me. I don't really understand it. I
have developed some applications in R. Do do you mean _commercial_
applications (i.e. something
R is not designed as an application development programming language. Your
question is a bit like asking why a car does not float like a boat. If you want
to distribute analyses broadly then you are likely to either need to do it
using a server or to expect users to become somewhat familiar with
Hi Tagmarie,
Have a look at gap.boxplot (plotrix).
JIim
On Mon, Sep 28, 2015 at 4:50 PM, Tagmarie wrote:
> Hi,
> I want to draw a usual boxplot. I have one outliner way up. It makes my
> boxes being drawn tiny. I do not want to delete the outliner as it is also
> of ecological importance.
> I
Good day,
I have two probability densities, each with a function determined by
splinefun(densityResult[['x']], densityResult[['y']], "natural"), where
densityResult is the output of the density function in stats. How can I
determine all of the x values at which the densities cross ?
--
I am new to R
And while learning the language inside the dev tools is easy and fun
I wonder how R applications are deployed and distributed to the typical
business users
I searched online of course and found some commercial options
The revolution r enterprise platform
Shiny r server from the make
Thank you Philllip,
And sorry being late in the response. Thanks for the reference, I
believe that many of the published papers on ERPs with mixed models have
descriptions of the analysis that often lacks of detail (even when
looking for non *.linguistic journals).
Concerning your comments:
Dear Dileep
What happens if you explicitly print it by wrapping the plot command in
print( )
On 28/09/2015 07:01, കുഞ്ഞായി kunjaai wrote:
Dear all,
I am trying to plot Spectrum of Singular Values using "Rssa" package.
I am trying to plot singular spectrum plot inside a loop, it is not
Hi,
I want to draw a usual boxplot. I have one outliner way up. It makes my
boxes being drawn tiny. I do not want to delete the outliner as it is also
of ecological importance.
I know there is a way of drawing a second window on top of the boxplot which
starts at a different y-axis-scales and inc
41 matches
Mail list logo