Displaying 20 results from an estimated 7000 matches similar to: "How to return/show the indexes of unusual points in boxplot?"
2010 Jun 02
4
Draw text with a box surround in plot.
text() can draw text on a plot.
Do we have a way/function to draw text with a box surround it?
Thanks,
-james
2009 Mar 10
6
Pseudo-random numbers between two numbers
I would like to generate pseudo-random numbers between two numbers using
R, up to a given distribution,
for instance, rnorm.
That is something like rnorm(HowMany,Min,Max,mean,sd) over
rnorm(HowMany,mean,sd).
I am wondering if
dnorm(runif(HowMany, Min, Max), mean, sd)
is good. Any idea? Thanks.
-james
2010 Jul 12
3
How to mean, min lists and numbers
I would like to sum/mean/min a list of lists and numbers to return the
related lists.
-1+2*c(1,1,0)+2+c(-1,10,-1) returns c(2,13,0) but
sum(1,2*c(1,1,0),2,c(-1,10,-1)) returns 15 not a list.
Using the suggestions of Gabor Grothendieck,
Reduce('+',list(-1,2*c(1,1,0),2,c(-1,10,-1))) returns what we want,
c(2,13,0).
However, it seems that this way does not work to mean/min.
So, how to
2009 Mar 10
2
How to color certain area under curve
For a given random variable rv, for instance, rv = rnorm(1000),
I plot its density curve and calculate some quantiles:
plot(density(rv))
P10P50P90 = = quantile(rv,probs = c(10,50,90)/100)
I would like to color the area between P10 and P90 and under the curve
and mark the P50 on the curve.
> rv = rnorm(1000)
> plot(density(rv))
> P10P50P90 = = quantile(rv,probs = c(10,50,90)/100)
Could
2010 May 27
2
How to catch Error Messages in R
As we knew, if a function is not used correctly,
an error message will throw/display in R:
> rnorm(-1)
Error in rnorm(-1) : invalid arguments
I would like to catch the error message or assign an error message to a
variable so that I can use them some where else.
So, how to catch error messages in R? Thanks,
-james
2010 Jul 07
2
Sum vectors and numbers
We want to sum many vectors and numbers together as a vector if there is
at least one vector in the arguments.
For example, 1 + c(2,3) = c(3,4).
Since we are not sure arguments to sum, we are using sum function:
sum(v1,v2,...,n1,n2,..).
The problem is that sum returns the sum of all the values present in its
arguments:
sum(1,c(2,3))=6
sum(1,2,3)=6
We do not want to turn sum(v1,v2,...,n1,n2,..) to
2009 May 20
2
How to load data from Statistics Canada
We would like to load data from Statistics Canada
(http://www.statcan.gc.ca/) using R,
for example, Employment and unemployment rates.
It seems to me that the tables are displayed in HTML.
I was wondering if you know how to load these tables. Thanks,
-james
2009 May 27
2
How to set a filter during reading tables
We are reading big tables, such as,
Chemicals <-
read.table('ftp://ftp.bls.gov/pub/time.series/wp/wp.data.7.Chemicals',header
= TRUE, sep = '\t', as.is =T)
I was wondering if it is possible to set a filter during loading so that
we just load what we want not the whole table each time. Thanks,
-james
2010 Sep 06
5
boxplot knowing Q1, Q3, median, upper and lower whisker value
Dear list,
I am using a external program that outputs Q1, Q3, median, upper and lower whisker values for various datasets simultaneously in a tab delimited format. After importing this text file into R, I would like to plot a boxplot using these given values and not the original series of data points, i.e. not using something like boxplot(mydata).
Is there an easy way for doing this? If I am not
2008 Mar 31
2
Call R from C#
I would like to call functions/objects of R from
C#.NET environment. I was wondering whether or not
it is possible. If yes, could you please give me some suggestions
on how to approach it (any examples/documentation on this)? Thanks!
-James
2007 Feb 22
2
question about boxplot
Here is a question from an old guy:
I want to use the boxplot function as follows:
boxplot( p.prop ~ R + bins )
This command makes nice boxplot for the factor "R" crossed with the factor "bins".
I am having alot of trouble getting control of the labels on the X axis. I want to control it more by specifying what the labels are, controling the 'size' of those
2007 Feb 07
3
boxplot statistics in ggplot
I need to make weighted boxplots. I found that ggplot makes them. I
would however like to label them with the boxplot statistics (the
median, q1 and q3). In the boxplot function in r-base, I could output
boxplot statistics and then write a text on the plot to place the
labels. How would one do it with ggplot?
Vikas
2011 Aug 18
1
Specifying data point locations on x-axis using boxplot() and points()
Hi all,
I would like to ask a question with regard to R graphics. I am currently
trying to add data points in boxplots using points(). In my script, I add
up boxplots three times using add=TRUE. I use points() every time I add
boxplots, and I see data points. However, I see all data points are clustered
at three specific points on x-axis; the locations of the data points
are not overlapping with
2010 Aug 05
2
colour of label points on a boxplot
Hi all,
I have 6 datasets(dataframes Assem_ContigsLen7 through all_ContigsLen12)
containing 3 columns (contig_id, contig_length, read_count).
Each dataset is composed of 3 types of contigs (assemblies of genomic
fragments), 1- all Bacterial fragments, 2 - all Viral fragments, 3 -
mixed fragments.
I identified the type of contig through a merge with another table with
just contig_id and
2009 Jun 30
1
How to pass parameters to htmlParse Bank of Canada html pages
To get USDCAD rates from Bank of Canada, we first go
url <- "http://banqueducanada.ca/en/rates/exchange-avg.html"
select 12 months for Rates for the past and click "Get Rates" button. Then
the page moves to
address <- "http://banqueducanada.ca/cgi-bin/famecgi_fdps"
and the rates show in the html page.
htmlParse() can read the html document but
2000 Jan 11
1
a +1 shift overlaying lines/points on a boxplot (PR#398)
Full_Name: Adrian Custer
Version: 0.90.0
OS: Linux on Thinkpad (pentium) and desktop (K6)
Submission from: (NULL) (128.32.251.234)
When I create a boxplot, and then try to overlay a lowess fit or just the
points,
the points do not appear in the highest level and the lowess curve does not
reach
the highest level. However, if I add one to each of the models, the problem is
solved.
I tried this
2009 Jun 23
1
How to find b entries using xPath?
We got all rows by:
library(XML)
doc =
htmlParse('http://www.statcan.gc.ca/daily-quotidien/090520/t090520b1-eng.htm')
rows = xpathSApply(doc, '//table/tbody/tr')
The last row is:
row_last = rows[15]
row_last
[[1]]
<tr><td id="t1stub17" class="stub1 RGBShade"><b>Unsmoothed composite
leading indicator</b></td>
<td
2009 Aug 07
3
Simple Question: adding points to a boxplot
I apologize in advance for the simplicity of this question. I use R 2-3 times a year, and I seem to forget more in the intervening months than I learn during my days of panicked reading.... I HAVE tried looking at the help resources; I'm just not very good at understanding them.
I have a dataframe with 18 observations of 5 different things, and a second dataframe with and estimate for those
2012 Jun 28
6
Help
Dear all,
I need some help on plotting multiple boxplots on one figure.
I have three matrix A, B and C. Each of them is a 1000 by 10 matrix.
The 10 columns of all three matrix correspond to the
10 values of the same parameter, say k=1, ..., 10.
I want to make a plot where x axis represents different values of k.
For each k value, I want to plot three boxplots, one on top of another.
For
2006 Mar 16
2
french secondary boxplot
bonjour,
i'm a mathematic teacher and i have a question for R-developers :
is it possible to have (in the future) a boxplot with whiskers from
the first decile to the ninth decile, as usual in secondary french
schools... by example : boxplot(serie,range=-1) for french boxplot ?
cordialement,
jean-pierre
lyc?e jean zay
orl?ans, france
http://mathazay.free.fr/spip/