Dear R list users,
I have a data frame called catchment like
"year" "season" "rainfall" "colour"
1953 1 409.5 "black"
1953 2 145.3 "black"
1953 3 285.6 "red"
1953 4 275.0 "black"
1954 1 273.8 "black"
1954 2 342.8 "blue"
1954 3 167.6 "black"
1954 4 341.1 "black"
1955 1 182.3 "blue"
1955 2 211.8 "bl
Hi
No reproducible example so lust general comments.
1. Your function does not return any value
2. You do not get errors but only warnings
3. In your function you get results only for X1. Is it really your intention?
4. I do not know mclapply but from quick look into help page parameters you use
On Fri, 18 Jul 2014 07:07:04 AM Stefano Sofia wrote:
> Dear R list users,
> I have a data frame called catchment like
>
> "year" "season" "rainfall" "colour"
> 1953 1 409.5 "black"
> 1953 2 145.3 "black"
> 1953 3 285.6 "red"
> 1953 4 275.0 "black"
> 1954 1 273.8 "black"
> 1954 2 342.8 "blue"
> 195
Thank you Jim, perfect.
Da: Jim Lemon [j...@bitwrit.com.au]
Inviato: venerdì 18 luglio 2014 10.22
A: r-help@r-project.org
Cc: Stefano Sofia
Oggetto: Re: [R] Use of different colours in plot
On Fri, 18 Jul 2014 07:07:04 AM Stefano Sofia wrote:
> Dear R list
Em 18-07-2014 08:07, Stefano Sofia escreveu:
Dear R list users,
I have a data frame called catchment like
"year" "season" "rainfall" "colour"
1953 1 409.5 "black"
1953 2 145.3 "black"
1953 3 285.6 "red"
1953 4 275.0 "black"
1954 1 273.8 "black"
1954 2 342.8 "blue"
1954 3 167.6 "black"
1954 4 341
Is there an R function to convert text to a QR Code?
My search attempts yielded QR decompositions ;-)
Thanks,
Spencer
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the postin
On 18/07/14 15:00, Dario Strbenac wrote:
The example in the question was not inside a user function.
Don't be silly.
cheers,
Rolf Turner
--
Rolf Turner
Technical Editor ANZJS
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listin
Dear Lorenzo,
I've just seen one post from you asking for hints to read SDMX data in R.
I don't know if you still need to read SDMX datasets in R. In case, you
can use the rsdmx package hosted here https://github.com/opensdmx/rsdmx
With the OECD sample you mention, you can do as follows:
#instal
Hello,
We are in the midst of changing our SOP for R on our local cluster. Network
access is only available from the head node but we don't want users downloading
and compiling packages on the head node. Previously, we asked that all package
installations & updates be done by the admins on requ
Hi list
I have a vector, which are remotely sensed chlorophyll values for a certain
pixel in 11 years, then i have a flag or label vector (t_max) that consists
of 0 and 1, which tells me where i have the annual peak (one per year, then
eleven 1 and all the rest are 0).
I'm interested in extractin
I am trying to apply the following command in R Studio but it is giving me
error. Can you please leet me know why it is not working with R Studio?
residualPlots(our.lm, type="rstudent")
Error in match.arg(type) :
'arg' should be one of âworkingâ, âresponseâ, âdevianceâ,
âpearson
Well, this was a shock to me. And I don't really see any documentation
about it, but perhaps I just can't see it.
>"abc" == "abc "
[1] FALSE
I guess that I thought of strings in R like I do is some other
languages where the shorter value is padded with blanks to the length
of the longer value, th
>>"abc" == "abc "
> [1] FALSE
R does no interpretation of strings when doing comparisons so you do
have do your own canonicalization. That may involve removing
trailing, leading, or all white space or punctuation, converting to
lower or upper case, mapping nicknames to official names, trimming to
Hi John,
On 07/18/2014 09:17 AM, John McKown wrote:
Well, this was a shock to me. And I don't really see any documentation
about it, but perhaps I just can't see it.
"abc" == "abc"
[1] FALSE
I guess that I thought of strings in R like I do is some other
languages where the shorter value is p
Hi all,
i am trying to use the 'spca' function of 'elasticnet' package. But i am
confused with the parameter 'para'.
Basically the parameter 'para' depends on the parameter 'sparse'. If
sparse="penalty", para is a vector of 1-norm penalty parameters. If
sparse="varnum", para defines the number of
Hi..
After I upgraded R from 3.1 to 3.11, I stuck with problem in installing
'ggplot2' package
The error message was;
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck
= vI[[j]]) :
there is no package called âRcppâ
Error: package or namespace load failed for â
> install.packages("ggplot2",dependencies=T)
> However, it didn't work, either.. it's so confusing.
What does R print when you type the 2 lines
install.packages("ggplot2", dependencies=TRUE)
libraray(ggplot2)
? ("didn't work" covers a lot of ground - seeing the entire
printed output may tel
The obvious workaround (to me) is to go back and use 3.1 until you figure out
how to setup 3.1.1.
Re the latter... you have omitted some key information that strongly suggests
that you have not read the Posting Guide. You might find reading [1] helpful as
well.
[1]
http://stackoverflow.com/qu
Dear R users,
I would appreciate your help in plotting the means with simultaneous
horizontal and vertical error bars. I use the lineplot.CI but it creates
the vertical bars only.
The attached file has the dataset that I want to graph. The (X) is the
x-axis values and (y Lint) is the response in
You could try plotCI from the plotrix package.
Note that most attachments are stripped; dput() is the preferred way
to include data.
Sarah
On Fri, Jul 18, 2014 at 4:41 PM, Ahmed Attia wrote:
> Dear R users,
>
> I would appreciate your help in plotting the means with simultaneous
> horizontal an
Hello!
I want my y axis in this plot to range from 0 to 1 and use as break points
0, 0.1, 0.2 up to 1.
Why is my code below not working?
Thank you!
library(ggplot2)
test<-data.frame(a=1:4,b=c(0.12,0.5,0.6,0.4))
ggplot(test, aes(x=a, y=b))+geom_line()+
scale_x_continuous(breaks=1:4)+
You need to explicitly specify the limits; see
http://docs.ggplot2.org/current/scale_continuous.html
library(ggplot2)
test<-data.frame(a=1:4,b=c(0.12,0.5,0.6,0.4))
ggplot(test, aes(x=a, y=b))+geom_line()+
scale_x_continuous(breaks=1:4)+
scale_y_continuous(breaks=seq(0,1,by=0.1), l
Thank you very much, Sarah!
On Fri, Jul 18, 2014 at 5:18 PM, Sarah Goslee
wrote:
> You need to explicitly specify the limits; see
>
> http://docs.ggplot2.org/current/scale_continuous.html
>
>
> library(ggplot2)
> test<-data.frame(a=1:4,b=c(0.12,0.5,0.6,0.4))
>
> ggplot(test, aes(x=a, y=b)
Did you read the help?
err: The direction of error bars: "x" for horizontal, "y" for
vertical ("xy" would be nice but is not implemented yet;
don't know quite how everything would be specified. See
examples for composing a plot with simultaneous horizontal
On Fri, Jul 18, 2014 at 5:38 PM, Ahmed Attia wrote:
> Yes, I saw this but I can't translate it to a code.
>
> http://svitsrv25.epfl.ch/R-doc/library/Hmisc/html/errbar.html
Why are you reading the help for Hmisc::errbar when I suggested (and
copied and pasted for you!) the function plotCI from the
Hi all,
I have been also trying the plotCI but it did not work out
plotCI(x, y = NULL, uiw, liw = uiw, ui, li, err='y', ylim=NULL,
xlim=NULL, type="p", col=par("col"), barcol=col,
pt.bg = par("bg"), sfrac = 0.01, gap=1, lwd=par("lwd"),
lty=par("lty"), labels=FALSE, add=FALS
The example given in ?plotCI works just fine for me. You'll need to be
more specific about what isn't working, and ideally provide some data
with dput().
Notice the add=TRUE argument in the second call to plotCI().
y<-runif(10)
err.x<-runif(10)
err.y<-runif(10)
plotCI(1:10
Is the original poster having trouble translating the synopsis at the
top of the help file to actual code? He should look at the examples
at the bottom of the help file, or better, run them with
example(plotCI)
and see if any of the plots looks close to what he wants.
Bill Dunlap
TIBCO Softw
Hello and sorry I am not providing an example. However, I hope you'll be
able to answer my question.
I have a "for" loop. Inside this loop I build 4 plots using ggplot2. See 2
blocks of code below - I have in total 4 of those:
As I step through the loop manually and run all the code inside the loo
Inside a loop or other function you need an explicit print statement.
http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_003f
Sarah
On Friday, July 18, 2014, Dimitri Liakhovitski <
dimitri.liakhovit...@gmail.com> wrote:
> Hello and sorry I am not providing
Thank you, but if I give my plot a name and then print it, how can I print
it with a desired name?
png(forname1,width=700,height=450)
print(
ggplot(result.opt, aes(x=prices, y=demand))+
geom_line(colour='darkblue',size=1.2)+
scale_x_continuous(breaks=seq(input[1,1],input[nrow(input),1],
I meant - the code I just sent doesn't give the file being printed a name...
On Fri, Jul 18, 2014 at 7:05 PM, Dimitri Liakhovitski <
dimitri.liakhovit...@gmail.com> wrote:
> Thank you, but if I give my plot a name and then print it, how can I print
> it with a desired name?
>
> png(forname1,wi
FAQ 7.16. ... yes, it applies.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. P
My problem is getting x and y into the PlotCI. I do not know how to use the
dput(). But below is my data;
x x-Water y 150 74.67 75 150 92.2 97 150 138.2 327.5 150 140.2 142.6
150 194.82 333.8 150 226.31 423 150 226.56 590.9 150 240.28 546.6 150
241.55 232.3 150 243.07 454.6 350 252.7
In the package phenology (in CRAN), I add a function plot_errbar:
plot_errbar(..., errbar.x = NULL, errbar.y = NULL, errbar.x.plus = NULL,
errbar.x.minus = NULL, errbar.y.plus = NULL, errbar.y.minus = NULL,
x.plus = NULL, x.minus = NULL, y.plus = NULL, y.minus = NULL,
errbar.tick = 1/50, err
35 matches
Mail list logo