search for: chocold12

Displaying 20 results from an estimated 60 matches for "chocold12".

2017 Aug 06
2
about saving format
In the lower right panel of R-studio interface, there is the "Export" button. I saved as PDF from there directly, rather than using functions On Sat, Aug 5, 2017 at 6:18 PM, Ismail SEZEN <sezenismail at gmail.com> wrote: > > > On 6 Aug 2017, at 03:01, lily li <chocold12 at gmail.com> wrote: > > > > I am using the plot() function, but have a problem. When saving as pdf > > format, the ? sign in the x-axis label becomes (...) sign. I prefer to > save > > in pdf, as this format has a higher resolution than jpeg or other picture > >...
2018 Jan 16
1
Steps to create spatial plots
If layer$z is a matrix and you want to reverse the order of the rows, you can do: n <- nrow(layer$z) layer$z <- layer$z[ n:1, ] HTH, Eric On Tue, Jan 16, 2018 at 8:43 AM, lily li <chocold12 at gmail.com> wrote: > Sorry for the emails, I just wanted to have an example. > layer$z > > 1 1 3 4 6 2 > 2 3 4 1 2 9 > 1 4 5 2 1 8 > > How to convert the matrix to layer$z = c(1, 4, 5, 2, 1, 8, 2, 3, 4, 1, 2, > 9, 1, 1, 3, 4, 6, 2)? > I think this...
2018 Jan 16
2
Steps to create spatial plots
...> Bert > > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along and > sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > On Mon, Jan 15, 2018 at 4:54 PM, lily li <chocold12 at gmail.com> wrote: > >> Hi Roman, >> >> Thanks for your reply. For the spatial coordinates layer, I just have >> coordinates of the upper left corner, numbers of rows and columns of the >> spatial map, and grid cell size. How to create a spatial layer of >&g...
2018 Jan 16
0
Steps to create spatial plots
...ted to have an example. layer$z 1 1 3 4 6 2 2 3 4 1 2 9 1 4 5 2 1 8 How to convert the matrix to layer$z = c(1, 4, 5, 2, 1, 8, 2, 3, 4, 1, 2, 9, 1, 1, 3, 4, 6, 2)? I think this vector is the order that levelplot can use. Thanks again. On Mon, Jan 15, 2018 at 10:58 PM, lily li <chocold12 at gmail.com> wrote: > Hi Bert, > > I think you are correct that I can use levelplot, but I have a question > about converting data. For example, the statement: > levelplot(Z~X*Y), Z is row-wise from the lower left corner to the upper > right corner. > My dataset just have...
2017 Aug 06
0
about saving format
> On 6 Aug 2017, at 03:47, lily li <chocold12 at gmail.com> wrote: > > In the lower right panel of R-studio interface, there is the "Export" button. I saved as PDF from there directly, rather than using functions > > On Sat, Aug 5, 2017 at 6:18 PM, Ismail SEZEN <sezenismail at gmail.com> wrote: > > >...
2018 Mar 08
0
add single points to a level plot
...or in UseMethod("levelplot") : no applicable method for 'levelplot' applied to an object of class "c('RasterStack', 'Raster', 'RasterStackBrick', 'BasicRaster')" what is the problem? Thanks. On Thu, Mar 8, 2018 at 12:07 AM, lily li <chocold12 at gmail.com> wrote: > Hi all, > > I'm trying to add single points with known coordinates to a level plot, > but could not find the proper answer. I got to know that layer() function > is good for this, but I don't know which package is related to this > function. The...
2018 Mar 08
3
add single points to a level plot
Hi all, I'm trying to add single points with known coordinates to a level plot, but could not find the proper answer. I got to know that layer() function is good for this, but I don't know which package is related to this function. The source is here: https://stackoverflow.com/questions/28597149/add-xy-points-to-raster-map-generated-by-levelplot but my question is a little different as I
2017 Aug 06
2
about saving format
...ing an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sat, Aug 5, 2017 at 5:54 PM, Ismail SEZEN <sezenismail at gmail.com> wrote: > >> On 6 Aug 2017, at 03:47, lily li <chocold12 at gmail.com> wrote: >> >> In the lower right panel of R-studio interface, there is the "Export" button. I saved as PDF from there directly, rather than using functions >> >> On Sat, Aug 5, 2017 at 6:18 PM, Ismail SEZEN <sezenismail at gmail.com> wrote: &g...
2018 Mar 08
1
add single points to a level plot
You need to load the package 'rasterVis' > library(rasterVis) HTH, Eric On Thu, Mar 8, 2018 at 5:11 PM, lily li <chocold12 at gmail.com> wrote: > Hi all, > > I ran the code: > > s <- stack(replicate(2, raster(matrix(runif(100), 10)))) > > xy <- data.frame(coordinates(sampleRandom(s, 10, sp=TRUE)), > + z1=runif(10), z2=runif(10)) > > levelplot(s, margin=FALSE, at=...
2017 Jul 16
0
About doing figures
...how to reformat the colors? Also, how to show the first legend only, but at the bottom, while the second legend in your code is not necessary? In all, the same A values have the same color, but different symbols in DF==1 and DF==2. Thanks for your help. On Sun, Jul 16, 2017 at 9:28 AM, lily li <chocold12 at gmail.com> wrote: > Hi Jim, > > For true color, I meant that the points in the figure do not correspond to > the values from the dataframe. Also, why to use rainbow(9) here? And the > legend is straight in the middle, is it possible to reformat it to the very > bottom? Than...
2017 Jul 16
2
About doing figures
...else(dfm$DF==1,1,19), > col=rainbow_colors[as.numeric(dfm$Acolor)]) > legend("bottom",legend=sort(unique(dfm$A)), > fill=rainbow_colors) > legend(25,35,c("DF=1","DF=2"),pch=c(1,19)) > > Jim > > > On Sun, Jul 16, 2017 at 3:43 PM, lily li <chocold12 at gmail.com> wrote: > > Hi R users, > > > > I still have the problem about plotting. I wanted to put the datasets on > > one figure, x-axis represents values B, y-axis represents values C, while > > different colors label column A. Each record uses a circle on the...
2018 Jan 16
3
Steps to create spatial plots
...are a few quick links that might come handy: > > https://cran.r-project.org/web/views/Spatial.html > http://www.datacarpentry.org/R-spatial-raster-vector- > lesson/10-vector-csv-to-shapefile-in-r/ > > > Cheers, > Roman > > On Mon, Jan 15, 2018 at 11:22 PM, lily li <chocold12 at gmail.com> wrote: > >> Hi users, >> >> I have no clear clue about plotting spatial data. For example, I just >> have a table with attribute values of each grid cell, such as elevation. >> Then I have coordinates of the upper left corner in UTM, the number of r...
2018 Jan 16
0
Steps to create spatial plots
...derstood your intent/specifications. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Mon, Jan 15, 2018 at 4:54 PM, lily li <chocold12 at gmail.com> wrote: > Hi Roman, > > Thanks for your reply. For the spatial coordinates layer, I just have > coordinates of the upper left corner, numbers of rows and columns of the > spatial map, and grid cell size. How to create a spatial layer of > coordinates from this dat...
2017 Aug 06
0
about saving format
...keep coming along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Sat, Aug 5, 2017 at 5:54 PM, Ismail SEZEN <sezenismail at gmail.com> wrote: >> >>> On 6 Aug 2017, at 03:47, lily li <chocold12 at gmail.com> wrote: >>> >>> In the lower right panel of R-studio interface, there is the "Export" button. I saved as PDF from there directly, rather than using functions >>> >>> On Sat, Aug 5, 2017 at 6:18 PM, Ismail SEZEN <sezenismail at gmail.c...
2017 Dec 15
2
Errors in reading in txt files
...quot;R-help on behalf of Ista Zahn" < > r-help-bounces at r-project.org on behalf of istazahn at gmail.com> wrote: > > On Thu, Dec 14, 2017 at 1:58 PM, Berend Hasselman <bhh at xs4all.nl> > wrote: > > > >> On 14 Dec 2017, at 19:36, lily li <chocold12 at gmail.com> wrote: > >> > >> Hi R users, > >> > >> I have a question about reading from text files. The file has the > structure > >> below: > >> > >> Time Column1 Column2...
2017 Jun 30
1
about reading files in order
...cept wasting our worlds oxygen on > pathetic excuses of nothings that should eat a bullet for their next meal > instead of bull SHIT ( although I know they like the taste of shit) (its a > favorite of ]r[ist subscribers ) > > Show quoted text > > 15:04, "lily li" <chocold12 at gmail.com> wrote: > > > > Hi R users, > > I have a question about opening the txt files and putting them into a > > matrix. The txt files are in the folder01, while they have the name > > file.1.txt, file.2.txt, file.3.txt, etc. There are about 200 such text >...
2017 Jul 13
0
about plotting a special case
...or.scale to get different colors. With this you can use color.legend to add a mapping of the values and colors. If you just want different colors, say 20, you can do things like: Color_unq<-rainbow(20) Color_unq<-colors(distinct=TRUE)[1:20] Jim On Thu, Jul 13, 2017 at 4:22 PM, lily li <chocold12 at gmail.com> wrote: > Hi Jim, > > How to generate unique (all different) colors for the same dataframe? I use > the code below, but found that there are same colors. Thanks again. > > Color= as.factor(DF1$C) > Color.unq = unique(Color) > points(DF1$A,DF1$B, col=Color.unq...
2017 Dec 14
0
Errors in reading in txt files
> On 14 Dec 2017, at 19:36, lily li <chocold12 at gmail.com> wrote: > > Hi R users, > > I have a question about reading from text files. The file has the structure > below: > > Time Column1 Column2 > 01.01.2001-12:00:00 This line does not contain 3 elements; only one. You'll have t...
2017 Dec 14
3
Errors in reading in txt files
Hi R users, I have a question about reading from text files. The file has the structure below: Time Column1 Column2 01.01.2001-12:00:00 01.01.2001-24:00:00 12 11 01.02.2001-12:00:00 13 10 01.02.2001-24:00:00 11 12 01.03.2001-12:00:00 15 11 01.03.2001-24:00:00 16 10 ... I
2017 Jun 21
2
fitting cosine curve
...ot; in the past, you should either split your data, estimate on one subset and then test on another, or estimate on your data and test on a replication. If you get pretty much the same values, you can be reasonably confident that they are reliable. Jim On Wed, Jun 21, 2017 at 9:52 AM, lily li <chocold12 at gmail.com> wrote: > For example, how do you know the value 0.6, and the frequency within cos? > > On Tue, Jun 20, 2017 at 5:49 PM, lily li <chocold12 at gmail.com> wrote: >> >> Thanks, that is cool. But would there be a way that can approximate the >> curve by...