Re: [R] no y-axis

2012-11-16 Thread Geophagus
thank you! -- View this message in context: http://r.789695.n4.nabble.com/no-drawn-y-axis-but-values-tp4649298p4649718.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/lis

Re: [R] merge dataframes with condition

2012-11-16 Thread Geophagus
Hi @ all, thanks for the solutions! Now I can go on. Greetz GeoPhagUS -- View this message in context: http://r.789695.n4.nabble.com/merge-dataframes-with-condition-tp4649605p4649712.html Sent from the R help mailing list archive at Nabble.com

Re: [R] merge dataframes with condition

2012-11-16 Thread Geophagus
Refering the discussed issue: As a result I have dataframe like the following. animal<-c("bear","lion","monkey","fish","zebra") S<-c(10,20,40,5,12) N<-c(5,8,15,26,1) Z<-c(24,12,8,7,2) R<-c(21,14,2,5,3) Q<-c(13,9,9,16,1) df1<-data.frame(animal,S,N,Z,R,Q) Now, I want to plot it as a stacked barcha

[R] merge dataframes with condition

2012-11-15 Thread Geophagus
Hi @ all, I wamnt to combine two dataframes including a condition. I have two dataframes like the following: animal<-c("bear","bear","lion","monkey","fish","monkey","bear","zebra","zebra") val<-c(2,42,67,5,12,9,87,1,12) place<-c("S","N","N","Z","R","O","E","I","Q") df1<-data.frame(animal,val,plac

Re: [R] no y-axis

2012-11-13 Thread Geophagus
Hi Jim and thanks for your answer. It does not work how I want. When I use your proposal, the values are superimposed like shown on the pic. pic.png Thats my code (what I need is a y-scale with the following interrupts: 5,10,100,1000,5000)

Re: [R] no y-axis

2012-11-12 Thread Geophagus
thanks, that works fine! good idea. I have one last question regarding this problem. My y-scale now is grouped from 0 - 4000 in 1000. Is it possible to set the scale into not equal breaks like 5,10,100,1000,5000 ? My axis now: axis(2,at=seq(0,4000,1000),col = "white", las=1) thanks a lot GeO

Re: [R] no y-axis

2012-11-12 Thread Geophagus
Hi and thanks for your answer, I need no axis - only the labels. In your example 1 to 10. Greetz GeO -- View this message in context: http://r.789695.n4.nabble.com/no-drawn-y-axis-but-values-tp4649298p4649324.html Sent from the R help mailing list archive at Nabble.com. _

[R] no y-axis

2012-11-12 Thread Geophagus
HI @ all, I'm looking for a simple solution to supress the y-axis - but only the drawn scale - not the values. Only the numbers should be displayed. I tried yaxt="n" but there everything of the y-axis is supressed. Thanks GeO -- View this message in context: http://r.789695.n4.nabble.com/no-y-

Re: [R] Labeling position barchart

2012-11-12 Thread Geophagus
Hi and thanks a lot for your advices. Both work fine! Thanks GeoPhagUS -- View this message in context: http://r.789695.n4.nabble.com/Labeling-position-barchart-tp4649031p4649294.html Sent from the R help mailing list archive at Nabble.com. __ R

[R] Labeling position barchart

2012-11-09 Thread Geophagus
Hi @ all, I try to set a labeling on simple barchart. I do it with the text function. I want to see values of the x axis (BE_AKT$ammo) above the bars. When I try the following code, the values are shown, but not in the correct position. They should be labeled 0.08 above the bars. text(BE_AKT$ammo,

Re: [R] Regrouping dataframe

2012-11-08 Thread Geophagus
Thank you very much! It works ! Best greetings GeO -- View this message in context: http://r.789695.n4.nabble.com/Regrouping-dataframe-tp4648927p4648956.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing l

[R] Regrouping dataframe

2012-11-08 Thread Geophagus
Hi @ all, I hope for some help of you. I have a dataframe and I want to regroup it. examp4.csv I need the arguments of "VAL" as table heads and the "TYPE " only in individual expression. The result should look like in the example pic. exp

Re: [R] Stacked Barchart as relative share

2012-11-08 Thread Geophagus
It Works :-) Thank you very much! Thats my way ! Best greetings GEO -- View this message in context: http://r.789695.n4.nabble.com/Stacked-Barchart-as-relative-share-tp4648854p4648883.html Sent from the R help mailing list archive at Nabble.com. ___

[R] Stacked Barchart as relative share

2012-11-08 Thread Geophagus
Hi @ all, I'm looking for a solution to plot a dataframe as a stacked bar chart like on this picture: http://4.bp.blogspot.com/_79SognVSu7A/S6OtzgksPSI/Brw/-IuFNewdZFE/s400/Stacked%2BBar%2BChart.png My dataframe example2.csv M

Re: [R] plot dataframe with inconsistently relations

2012-09-14 Thread Geophagus
yes thats right. I want to see all points - so I need a line with dots -- View this message in context: http://r.789695.n4.nabble.com/plot-dataframe-with-inconsistently-relations-tp4642766p4643116.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] plot dataframe with inconsistently relations

2012-09-12 Thread Geophagus
Hi @ all and thanks a lot for your advises. So far I don't know the function dput. Now I read something about it and I have the following result: > TEST year value state 1 200715FL 2 200816FL 3 200814TX 4 200813TN 5 200918FL 6 200915OH 7 201019

[R] plot dataframe with inconsistently relations

2012-09-11 Thread Geophagus
Hi @ all, I work with a dataframe like the attached one. I want to plot it, so that "value" is listed on the y-axis, "year" on the x-axis and "states" as lines in the coordinate system. I tried the following code: require(ggplot) plot1<-ggplot(TEST, aes(year, value)) + geom_line(aes(colour = stat

Re: [R] barchart with 3 rows

2012-08-30 Thread Geophagus
Thanks a lot 2 all of you. Both proposals work very fine!! Thank you and best greetings. Geophagus -- View this message in context: http://r.789695.n4.nabble.com/barchart-with-3-rows-tp4641572p4641809.html Sent from the R help mailing list archive at Nabble.com

Re: [R] barchart with 3 rows

2012-08-29 Thread Geophagus
Thank you - I'll try it today and give you a reply!! Thanks a lot Geo -- View this message in context: http://r.789695.n4.nabble.com/barchart-with-3-rows-tp4641572p4641697.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-pr

[R] barchart with 3 Arguments

2012-08-28 Thread Geophagus
matrix. On the y-axis, the "amount_cattle" should be displayed and on the x-axis the "year" and the "country" so that I can compare the amount over the years in each country. Each country on the x-axis needs 4 bars (2000-2003). I hope you can help me. Thanks a lot g

Re: [R] colored outliers

2012-01-21 Thread Geophagus
Thank you so much - now it works! Tanks for your patience with me! GeO -- View this message in context: http://r.789695.n4.nabble.com/colored-outliers-tp4282207p4315743.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.

Re: [R] colored outliers

2012-01-20 Thread Geophagus
Dear Petr and Justin, my problem ist, that I only want to have the 4 highest values for "Ni" as a red point or with a red circle. The other points should not be modificated. In your proposals always all points get a red circle or a red point not only the 4 highest Ni values! I hope you could unders

Re: [R] colored outliers

2012-01-13 Thread Geophagus
Hi Justin, it still does not work. All points become red. I use this skript with your modifications: TOC_NI<-read.csv2("C:/Users/hilliges/Desktop/Master/Daten/Statistik/TOC-NI.csv", sep=";", dec=",", encoding="UTF-8") circ<-TOC_NI[order(TOC_NI$NI,decreasing=T),][1:4,] plot(NI~TOC,data=TOC_NI,co

Re: [R] colored outliers

2012-01-10 Thread Geophagus
Hi Justin, thanks a lot for your quick answer. If I use your code, all points become red. How do you include the sorted and separated four values into the "points" argument? The variable in your script is called "circ" but this is not fronted up anymore. Here the script again: TOC_NI<-read.csv2("C

[R] colored outliers

2012-01-10 Thread Geophagus
he four highest values of Ni. Does anyone has an idea how to do that? Thanks a lot! Best Regards Geophagus -- View this message in context: http://r.789695.n4.nabble.com/colored-outliers-tp4282207p4282207.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] Matrix for correlation

2011-11-29 Thread Geophagus
Hi @ all and sorry for the confusion, my problem is solved. I also know a corellation is - it was only a formatting and describing problem. Grant gave me the right advice with the kruskal-wallis! Thanks GeOphagus -- View this message in context: http://r.789695.n4.nabble.com/Matrix-for

Re: [R] Matrix for correlation

2011-11-29 Thread Geophagus
e table in my first post. Do you understand my problem? Thanks a lot! Geophagus -- View this message in context: http://r.789695.n4.nabble.com/Matrix-for-correlation-tp4119590p4119734.html Sent from the R help mailing list archive at Nabble.com. _

[R] Matrix for correlation

2011-11-29 Thread Geophagus
hi @ all, I have problem with creating a matrix for a cor() function. I try to use the cor() function on a matrix to test the correlation between each value in a column. Maybe like corr(x, method = xyz). My x has two columns maybe like this: MEDIA VALUE Car 23 Train26 Plane 25 Cab

[R] cbin *-* Problem with different vector lenghts

2011-08-16 Thread Geophagus
2 8 1 2 1 Warnmeldung: In cbind(b2007, b2008, b2009) : number of rows of result is not a multiple of vector length (arg 1) I also need the row name "5" and the "1" with NA or 0 as value in the result. I hope my problem was understandable. Thanks a lot in advan

Re: [R] Grouping columns

2011-07-21 Thread Geophagus
Hi @ all, both possibilities are working very fine. Thanks a lot for the fast help! Best Greetinx from the "Earth Eater" Geophagus -- View this message in context: http://r.789695.n4.nabble.com/Grouping-columns-tp3681018p3683076.html Sent from the R help mailing list archive at

[R] Grouping columns

2011-07-20 Thread Geophagus
*Hi @ all, I have a question concerning the possibilty of grouping the columns of a matrix. R groups the columns alphabetically. What can I do to group the columns in my specifications? The script is the following:* > #R-Skript: Anzahl xyz > > #Quelldatei einlesen > b<-read.csv2("Z:/int/xyz.csv