Skip to content
Prev 29067 / 29559 Next

Selecting a range of values in a specific column for R ggplot

That was precisely the problem! Thank you so much!


-----Original Message-----
From: Alexander Ilich <ailich at usf.edu>
To: bfalevlist at gmail.com <bfalevlist at gmail.com>; r-sig-geo at r-project.org <r-sig-geo at r-project.org>; rain1290 at aim.com <rain1290 at aim.com>
Sent: Thu, Oct 13, 2022 2:07 pm
Subject: Re: [R-sig-Geo] Selecting a range of values in a specific column for R ggplot

 #yiv4975106143 P {margin-top:0;margin-bottom:0;}Make sure to include the comma after the numbers so that you're selecting rows x through y and all columns. For example,?GEV[17:21,] not?GEV[17:21]From: R-sig-Geo <r-sig-geo-bounces at r-project.org> on behalf of rain1290--- via R-sig-Geo <r-sig-geo at r-project.org>
Sent: Thursday, October 13, 2022 1:08 PM
To: bfalevlist at gmail.com <bfalevlist at gmail.com>; r-sig-geo at r-project.org <r-sig-geo at r-project.org>
Subject: Re: [R-sig-Geo] Selecting a range of values in a specific column for R ggplot?That you so much! Yes, this stopped the error from appearing.
-----Original Message-----
From: Bede-Fazekas ?kos <bfalevlist at gmail.com>
To: r-sig-geo at r-project.org
Sent: Thu, Oct 13, 2022 12:37 pm
Subject: Re: [R-sig-Geo] Selecting a range of values in a specific column for R ggplot

Hello,
try
newplot <- ggplot(data = GEV[1:4, ], aes(x = RL45)) + geom_density(color
= "midnightblue") + xlab("Location (mm/day") + ggtitle("Global Location
under RCP4.5") + xlim(300, 350)
HTH,
?kos
-----------
?kos Bede-Fazekas
Centre for Ecological Research, Hungary

2022.10.13. 18:27 keltez?ssel, rain1290--- via R-sig-Geo ?rta:
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-sig-geo&amp;data=05%7C01%7Cailich%40usf.edu%7Cf3a66d57d850475703de08daad3da230%7C741bf7dee2e546df8d6782607df9deaa%7C0%7C0%7C638012777488466291%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=1jk%2BDyj%2BgAML1JoeJIcsL%2BdwIeBE4eG%2BeR1AU1u5LMM%3D&amp;reserved=0

??????? [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-sig-geo&amp;data=05%7C01%7Cailich%40usf.edu%7Cf3a66d57d850475703de08daad3da230%7C741bf7dee2e546df8d6782607df9deaa%7C0%7C0%7C638012777488466291%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=1jk%2BDyj%2BgAML1JoeJIcsL%2BdwIeBE4eG%2BeR1AU1u5LMM%3D&amp;reserved=0
[EXTERNAL EMAIL] DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe.