Dear R-listers,
There is my data and my codes to create a plot. I want to know why
there are two small circles in the upper right and lower left of the
plot respectively. Could you please share your experience or advice
with me?
# dummy data
factor<-rep(c("Alice","Jone","Mike"),each=100)
factor<-
Dear R-listers,
I have created a plot to display the density lines for the same
variable by different entities. Now, I want to fill the area under the
density lines with semitransparent colors.
Though I have checked that in web-searching and book-reading, I still
do not perform that.
Could anyone
Dear R-help listers,
Under the helps from the ggplot2 list, I have set up method of drawing
a graph with multiple density plots arranged one by one in one page.
Now, I want to add 95% confidential interval as vertical lines to x
axe in density plot. I have found the library(hdrcde) can do this
wo
Dear R-help listers,
I want to add 95% confidential interval as vertical lines to x
axe in density plot. I have found the library(hdrcde) can do this
work, but I do not know
how to handle functions of this library when I used ggplot2 to draw the graph.
Thank you in advance.
The data and codes fo
Dear R-listers,
I want to reperfrom a poisson distribution test that presented in a
recent-published biological research paper (Plant Physiology 2008, vol 148,
pp. 1189-1200). That test is about the occurrence number of a kind of gene
in separate chromosomes.
For instance:
The observed gene numb
Dear R-lister and Prof. Harrell,
To Prof. Harrell: I feel very sorry to bothering you.
The ecological data usually do not follow strictly-defined normal
distribution. So, there are many more works before any parametric testing or
any regression modeling-fitting .
Tens of days ago, when I ask for
Dear R-listers,
I am now asking for step by step tutorial to beginning of R programming by
Emacs+ESS on MS Windows. Though it was appreciated highly, there is much
troubles we must conquered before we set up R programming by Emacs+ESS,
especially for users of MS Windows and who without extensive
Dear R-helpers
I want to express my respect and thankfulness to all of you.
When I tried to follow a draft book on lme4 authored by Prof. Doug.
Bates (http://lme4.r-forge.r-project.org/book/) to learn how to fit
mixed-effects model, I found I can not execute two functions which
listed in the book
Dear R-helpers
I want to express my respect and thankfulness to all of you.
I just switch from windows xp to Ubuntu linux platform. I am facing
two problems when I run R in Ubuntu.
I need your helps and advice, thanks in advance.
-
Dear R-helpers
I want to express my respect and thankfulness to all of you. I have
ever ask this question about one hour ago. Following Mr. Henrik
Bengtsson's advice I re-submit this query here.
I just switch from windows xp to Ubuntu linux platform. I am facingtwo
problems when I run R in Ubuntu
Dear R-helpers
I want to express my respect and thankfulness to all of you. An
apology to the second post of this query. I have
ever asked this question yesterday. Following Mr. Henrik
Bengtsson's advice I re-submit this query here.
I just switch from windows xp to Ubuntu linux platform. I am fa
Dear R-help listers,
I am now asking for helps on how to draw stacked ellipses to
illustrate the shared and specific of multiple objects using R.
My problem comes from my population genetics study. Now, I genotyped
three species, and I get known about the amount of shared and specific
haplotypes
Dear R-listers,
I have a data set which combine population (site name), longitude,
latitude, altitude, initial (for flowering of a plant), and end (also
for flowering of the same plant) of each site.
Now, I want to make contour plot to display the initial or end of the
spatial pattern of flowerin
Dear R-listers,
I have a data set which combine population (site name), longitude,
latitude, altitude, initial (for flowering of a plant), and end (also
for flowering of the same plant) of each site.
Now, I want to make contour plot to display spatial pattern of the
initial or end of the
floweri
Dear Ruser's
I ask for helps on how to substitute missing values (NAs) by mean of the
group it is belonging to.
my dummy dataframe is:
> df
group traits
1 BSPy01-10 NA
2 BSPy01-107.3
3 BSPy01-107.3
4 BSPy01-115.3
5 BSPy01-115.4
6 BSPy01-115.6
7 BSPy01-11
Dear Ruser's
I want to substitute each "NA" by the group mean of which the "NA" is
belonging to. For example, substitute the first record of traits "NA" by the
mean of "BSPy01-10" in the dummy dataframe.
I have ever tried to solve this problem by using doBy package. But, I
failed. I ask for the a
Hi R-listers,
I am new to R and programming.
I have a large dataframe composed of two grouping variables (species,
population, with populations nested in species) and tens of continuously
numeric variables. For each numeric variable, I want to make a boxplot with
population as the X axis and the
Dear R-helpers,
I want to make a series of boxplots on several numeric univariates with two
group variables (species and population, population nested in species, and
with population as the X-axis). In order to get a proper order of the
individual populations in X-axis, I need to assign a wanted o
Dear R-helpers,
Very small amount of outliers can greatly affect the mean and many other
statistic of a numeric variable. So, usually we must deal with the outliers
properly in the process of data analysis. Here, I want to replace outliers
with the group median of the variable. But, I can not cons
Hi, R-listers,
Failed, when I tried to merge df1 and df2 by "codetot" in df1 and "codetoto"
in df2. I want to know the reason and how to merge them together. Data
frames and codes I have used were listed as followed. Thanks a lot in
advance.
df1:
popcode codetot p3need
BCPy01-01 BCPy01-01-1
Dear, R-lister,
I have a dataframe like the followed. And, I want to split a character
variable ("popcode", or "codetot") into several new variables. For example,
split "BCPy01-01" (in popcode) into "BCPy01" and "01". I need to know how to
do that. I have tried strsplit() and substring() functions
Dear R-helpers,
Glad to write to you.
I would like to have your helps to install packages through internet, in a
linux computer. Could you please share any of your expertise with me on
this problem?
Thanks in advance.
Best
Jian-Feng,
# check the problem
;
to link to internet, in this server.
So, do you have any ideas/tools/scripts on how to track the real problem,
in my case?
Best
Jian-Feng,
2013/11/5 Marc Schwartz
>
> On Nov 5, 2013, at 4:38 AM, Mao Jianfeng wrote:
>
> > Dear R-helpers,
> >
> > Glad to write t
Dear R-help listers,
I am new. I just want to get helps on how to plot two histograms
overlapped in the same plane coordinate. What I did is very ugly.
Could you please help me to improve it? I want to got a plot with semi-
transparent overlapping region. And, I want to know how to specify the
fil
Dear R-listers,
I have a set of plant multivariate morphological data (including
thousands of individuals from several species) which may be identified
as several units of morphological variation.
Firstly, I want to defined the optimal number of such units
Then, I want to choose proper discrimina
Dear R-help listes,
I need your helps on implementation a jackknife resampling test.
For example, I have a sample of 100 observations. I need to calculate
the mean by jackknife resampling test. I just intend to sample 75% of
the whole sample (say 75 in this case) in each 100 times of jackknife
re
Dear R-helpers,
I intend to upgrade R in Mac OS with updated R version and updated Mac
OS version.
I think my Mac notebook is produced with Mac x86_64, darwin9.8.0. I
have updated my Mac OS to Mac OS X version 10.6.5. But, when I
installed R 2.12.1, the "version" function still gave me informati
Dear R-listers,
I do clustering on tens of individuals by thousands of traits. I have
known the assignment of each individual. I want to classify the
individuals by randomly resampling different subsets of the traits,
for example, randomly resampling 100 traits for 100 times, then 200
traits for 1
Dear R-helpers,
I can not invoke maxent() in Mac OSX. Could you give me any directions
on that? Thank you in advance.
Here is my info:
# (1) the error
> me <- maxent(predictors, occtrain, factors='biome')
me <- maxent(predictors, occtrain, factors='biome')
Error in .jcall(mxe, "S", "fit", c("au
Dear r-helpers,
I want to randomly sample n points from regions of a raster layers,
the cells denoted as "NA" is not
included in this sampling process. And, I want to got the longitude
and latitude of the sampled points.
I checked the manual of raster package, I found several functions is
relativ
Dear all,
This is a simple probability problem. I want to know, How to generate a
normal distribution with mean=1, min=0.2 and max=0.8?
I know how the generate a normal distribution of mean = 1 and sd = 1 and
with 500 data point.
rnorm(n=500, m=1, sd=1)
But, I am confusing with how to generate
gt;>
>> Ph. (410) 502-2619
>> email: rvarad...@jhmi.edu
>>
>>
>> -Original Message-
>> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
>> On Behalf Of Mao Jianfeng
>> Sent: Thursday, April 28, 2011 12:02 PM
>> T
Dear R-listers,
I am new to R in linux. And, I am now confused by updating R in Ubuntu
9.10 linux system. I would like to seek some advice on that problem.
I have done what are listed in CRAN linux installation guide:
1. add an entry like "deb
http://cran.cnr.berkeley.edu/bin/linux/ubuntu karmic
Dear R-helpers and Dr. Hijmans,
I can not invoke maxent() in GNU Linux. Could you give me any directions
on that? There is maxent.jar in version 3.3.3e in the right folder.
R:
> jar <- paste(system.file(package="dismo"), "/java/maxent.jar", sep='')
> jar
[
Dear R-listers,
I would like to have your helps on make a good strategy of quality
control by several quality control variables. This means I need a good
strategy to choose cutoff for each quality control variables, or make
cutoff for all such quality control variables in one time.
For quality co
Dear all,
I have data.frame object in R. I want to export it in tab-delimited
file with several lines of header initiated with comment sign (#). I
do not know how to do that in R. Could you please give helps on this
problem?
Thanks in advance.
Best,
Jian-Feng,
##
"# in the file"), con = con)
>> # create some data to be output as 'tab' separated
>> myData <- as.data.frame(matrix(letters[1:25], 5))
>> write.table(myData, file = con, sep = '\t')
>> close(con)
>
> or:
>
> myData <- as.da
Dear all,
I have few training on Hidden Markov Model. But, I intend to solve my
problem by HMM. I would like to have your helps/directions to me.
Here, I have two variables to define the 8 one-dimension space (coordinate.1,
coordinate.2). In this one-dimension space, there are two sequences of
va
Dear R-helpers and Klaus,
I would like to know how to write out a tree file with bootstrap from
phangorn package. That tree file could be in newick format or others.
I am new for phylogenetic operation in R. Could you please give me any
directions on that? Thanks in advance.
Best wishes,
Jian-Fe
tree:
> tree <- plotBS(fit$tree, bs)
> # You can export than this tree using write.tree or write.nexus, e.g.
> write.tree(tree)
>
> Regards,
> Klaus
>
>
> On 8/7/12, Mao Jianfeng wrote:
> > Dear R-helpers and Klaus,
> >
> > I would like to know h
Dear r-helpers,
I have an one-dimensional integer space (defined by random integer
intervals, which overlapped each other or not). I would like to select
consecutive integer intervals with specific intra and inter length.
Here, an integer interval means a set of consecutive increasing integers,
d
Dear David,
Thanks for your response and warnings.
I will obey the rule and be a good citizen.
Best,
Jian-Feng,
Because you have a poorly posted problem. As far as I can tell you have not
yet responded constructively to the attempts at clarification of the
problem. Cross-posting to this list a
Dear Gene,
Thanks a lot for your kindness.
> isp <- data.frame(begin=c(1,5,6,15,31,51,102), end=c(7,9,13,21,49,52,109))
> isp
> ints = apply(isp, 1, function(x)seq(x[1],x[2]))
> ints
> ints = do.call(c, ints)
> ints
> ## option to fix if the regions are overlapping
> ## and you don't want overlap
Dear r-helpers,
Here I would like to have your kind helps on generating Venn diagram.
There are some packages within R on this task, like venneuler, VennDiagram,
vennerable. But, vennerable can not be installed on my Mac book. It seems
VennDiagram can not work on my data. And, venneuler may have
Dear Peter,
I am glad to hearing your reply. That is really nice. Thanks a lot.
###
# (1) the problem of the plot venneuler generated me is sets (A,B,C,D,E,F)
should shared 69604 elements.
# But, it illustrated nothing for me for this 6 sets sharing.
>
Dear R-listers,
Here, I would like to hearing helps from you.
I have GPS data (multiple points in the geographic scale) in
longitude/latitude. I intend to calculate
distance (in kilometer) among such points and output the distance matrix in
dist class.
I have gotten some progress, but I still ca
-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> On
> Behalf Of Mao Jianfeng
> Sent: Tuesday, November 08, 2011 8:22 AM
> To: r-help@r-project.org
> Cc: bossa.pack...@gmail.com
> Subject: [R] from points in Lon/Lat to physical distance in dist class
>
> Dea
Dear R-helpers, Christoph (author of phyloclim) and Luke (author of
tkrplot),
I would like to get your helps on installing of phyloclim in Ubuntu linux.
It seems a package named 'tkrplot' could not be installed at firstly, then
packages depends on it could not be installed latter.
As I have teste
Hello.
I am new to R. And, I want to perform a multiple nested anova on a large
datasets (with 9448 observations). Under the helps from R-Sig-ecology
mailing list, I have gained many progresses. But I still have some
confusions. I want to ask for some helps here.
my dataset("SeedL.txt") was not
Hello dear R-users,
I have a tricky problem of data manipulation with R. Although it seems
very easy, I can not solve it by myselves.
The problem is a variable in my dataset is usually be readed as
"factor" (variable mode), however I want it be a "numeric" one. I want
to know how can I define
50 matches
Mail list logo