On 3/06/20 2:21 pm, p...@philipsmith.ca wrote:
Thanks Bert. That did it.
Philip
On 2020-06-02 22:02, Bert Gunter wrote:
In a function you must explicitly print/plot the ggplot() object, I
assume. i.e. plot(ggplot(...)) etc.
I do not use ggplot, so if I'm wrong, sorry. But try it.
(excerpts only)
> Tried this new version but did not execute...
> Error in plot_ds(bat_call, "plot 2", c(25, 28), c(-15, 10), k1 = 1.25, :
> object 'bat_call' not found
I've used the bat_call object, from Jim's earlier post.
__
R-help@r-project.org
Thanks Bert. That did it.
Philip
On 2020-06-02 22:02, Bert Gunter wrote:
In a function you must explicitly print/plot the ggplot() object, I
assume. i.e. plot(ggplot(...)) etc.
I do not use ggplot, so if I'm wrong, sorry. But try it. Hopefully
someone else will get it right if it doesn't do
In a function you must explicitly print/plot the ggplot() object, I assume.
i.e. plot(ggplot(...)) etc.
I do not use ggplot, so if I'm wrong, sorry. But try it. Hopefully
someone else will get it right if it doesn't do it.
Bert Gunter
"The trouble with having an open mind is that people keep
I have made what must be a simple mistake, but I have not been able to
find it.
I create a function to plot a chart for a single variable. I want to
display separate charts for several variables, one after another, with
"Press [enter] to continue" in between. The function works fine for a
Hi Abby,
Tried this new version but did not execute...
Clearly I am missing a step.
Bruce
> library (barsurf)
> library (KernSmooth)
> set.bs.theme ("heat")
>
> plot_ds <- function (dataset, main="", xlim, ylim, ...,
+ ncontours=3, labcex=0.8, ndec=3,
+ k1=1, k2=1, n=30)
+ { names <-
> The contour lines are actually useful to see groupings.
> However w/o a legend for density it is not possible to see what is
> presented.
I need to re-iterate, that the diagonal lines, may be important.
Also, I'm not sure I see the point in adding density values.
Unless people have a good
> that extraneous white lines in PDFs are the fault of the PDF
> viewing program rather than of R.
Except it's a PNG file.
I've tried to minimize artifacts viewing PDF files.
But assumed (falsely?) that PNGs and other raster formats, would be fine.
On 6/2/20 2:13 PM, William McCoy via ESS-help wrote:
I have another problem with my ESS configuration (ESS version
18.10.3snapshot). My editor in R is set as 'emacsclient':
!> options("editor")
$editor
[1] "emacsclient"
However, when I execute help() or use C-c C-v, I get a new buffer
Tnx Jim,
Yes if there is a way to first extract the ranges of each data files Fc
range and Sc ranges and then link to the plot that would be stellar.
I will look at this code and see how it is working so far.
Thanks a million.
Bruce
Hi Bruce & Abby,
Here is a start on merging the two plots.
On 6/2/20 11:44 AM, Abby Spurdle wrote:
Very nice
Jim, thank you.
However, the (deterministic, or near-deterministic) diagonal lines in
the plot, make me question the suitability of this approach.
In my plot, the contour lines could be removed, and brighter colors
could be used.
But perhaps,
Hi Bruce & Abby,
Here is a start on merging the two plots.
Abby - I had to cheat on the legend colors as I could not work out
from the help pages how to specify the range of colors. Also I don't
know the range of densities. Both should be easy to fix. While I
specified xlab and ylab, they don't
Hi Abby,
The contour lines are actually useful to see groupings.
However w/o a legend for density it is not possible to see what is
presented.
Very nice
Jim, thank you.
However, the (deterministic, or near-deterministic) diagonal lines in
the plot, make me question the suitability of this
> Very nice
Jim, thank you.
However, the (deterministic, or near-deterministic) diagonal lines in
the plot, make me question the suitability of this approach.
In my plot, the contour lines could be removed, and brighter colors
could be used.
But perhaps, a better approach would be to model those
I have another problem with my ESS configuration (ESS version
18.10.3snapshot). My editor in R is set as 'emacsclient':
!> options("editor")
$editor
[1] "emacsclient"
However, when I execute help() or use C-c C-v, I get a new buffer with
the following message:
+ emacsclient: file name or
Hi all,
I spent some time this morning fiddling with the parameters in the plot
code provided by Jim and Abby and by changing some important ones.
Jim did note
*# set the matrix limits a bit beyond the data ranges*
fcsc_mat<-makeDensityMatrix(bfs$Fc,bfs$Sc,nx=100,ny=100,
Hola
Yo una vez use esta función "ggcorr", library(GGally) para hacer
correlaciones pero de una matriz. Quizás te ayude.
https://briatte.github.io/ggcorr/
Saludos
On Tue, Jun 2, 2020 at 12:20 PM Yesica Pallavicini Fernandez <
yesipa...@gmail.com> wrote:
> Hola Necesito hacer correlaciones con
Hola Necesito hacer correlaciones con permutaciones de los scores de los
ejes de un PCA con ciertas variables.
¿Alguien sabe qué función utilizar?
Gracias
Yésica
[[alternative HTML version deleted]]
___
R-help-es mailing list
Hi all,
Many thanks for the efforts and suggestions.
This is getting closer to what is needed. No legend showing the density
values yet.
I was able to replicate a similar plot with the original data set.
However when I tried this with a different data set that has other Fc &
Sc values the
Very nice. I forgot that you didn't have the complete data set.
png("as_bat_call.png")
plot_ds (bfs[,c("Fc","Sc")], "plot 1", xlim = c (25, 30), ylim = c (-15, 10),
k1=1.25, k2=1.25)
dev.off()
Jim
On Tue, Jun 2, 2020 at 6:24 PM Abby Spurdle wrote:
>
> I'm putting this back on the list.
I'm putting this back on the list.
> So how would I set up the code to do this with the data type I have?
> I will need to replicate the same task > 200 times with other data sets.
> What I need to do is plot *Fc *against *Sc* with the third dimension being
> the *density* of the data points.
Wrong list. Do _read_ the Posting Guide and then check out r-sig-geo.
On June 1, 2020 5:18:49 PM PDT, Lom Navanyo wrote:
>Hello,
>I have data set of about 3400 location points with which I am trying to
>generate data of each point and their neighbors within defined radii
>(eg,
>0.25, 1, and 3
Hello,
I have data set of about 3400 location points with which I am trying to
generate data of each point and their neighbors within defined radii (eg,
0.25, 1, and 3 miles).
Below is a reprex using the built-in nz_height data:
library(sf)
library(dplyr)
library(spData)
library(ggplot2)
23 matches
Mail list logo