Displaying 20 results from an estimated 100 matches similar to: "scale_colour_viridis en ggplot2"
2023 May 31
1
scale_colour_viridis en ggplot2
De acuerdo a Bard;
? scale_colour_viridis_d: Esta función utiliza la paleta de colores "viridis" en una escala continua, donde los colores varían de forma suave y continua. Es adecuada para representar datos en los que se desea resaltar las variaciones sutiles en los valores de la variable.
? scale_colour_viridis_c: Esta función también utiliza la paleta de colores
2020 Apr 29
2
problem with `viridis` on Ubuntu 20.04
I've hit a bug on Ubuntu 20.04. The issue occurred both with the R
version that shipped with Ubuntu last week, and it is occurring now with
the CRAN packages from one of the mirros (deb
http://cran.mirror.garr.it/mirrors/CRAN/bin/linux/ubuntu/
focal-cran40/). The issue occurs whether I use the deb package for
viridis in the Ubuntu repos, or I install it with `install.packages()` in R.
2020 Apr 29
0
problem with `viridis` on Ubuntu 20.04
On 30 April 2020 at 01:24, Samuele Carcagno wrote:
| I've hit a bug on Ubuntu 20.04. The issue occurred both with the R
| version that shipped with Ubuntu last week, and it is occurring now with
| the CRAN packages from one of the mirros (deb
| http://cran.mirror.garr.it/mirrors/CRAN/bin/linux/ubuntu/
| focal-cran40/). The issue occurs whether I use the deb package for
| viridis in the
2020 Apr 30
2
problem with `viridis` on Ubuntu 20.04
Il 30/04/20 01:39, Dirk Eddelbuettel ha scritto:
>
> On 30 April 2020 at 01:24, Samuele Carcagno wrote:
> | I've hit a bug on Ubuntu 20.04. The issue occurred both with the R
> | version that shipped with Ubuntu last week, and it is occurring now with
> | the CRAN packages from one of the mirros (deb
> | http://cran.mirror.garr.it/mirrors/CRAN/bin/linux/ubuntu/
> |
2024 Feb 24
2
igraph_vertex
Dear R-community
It would be nice to get some input how to find a solution for the following
error in igraph and vertex setting.
Thank you very much
Sibylle
> par(bg="black")
> network %>% plot(
+ vertex.color=clrs[V(.)$community],
+ vertex.size=V(.)$hub_score*1,
+ vertex.frame.color=V(.)$color,
+ vertex.label.color="white",
+
2015 Nov 23
2
Model averaging en R
Hola a todos,
He realizado un dredge (para obtener todos los modelos GAM posibles a parir
de un full model), luego he seleccionado un confidence set (los modelos que
no se diferencian en 2 en AIC) y he hecho un model averaging con ese
confidence set. Ahora me gustaría aplicar ese modelo "average" ajustado
sobre otro set de datos pero no se como especificar en R que use el mismo
modelo
2020 Apr 30
0
problem with `viridis` on Ubuntu 20.04
On 30 April 2020 at 03:05, Samuele Carcagno wrote:
| Il 30/04/20 01:39, Dirk Eddelbuettel ha scritto:
| > Keep. It. Simple. And. Concise.
| >
| > And reproducible.
|
| I've attached a script that triggers the bug on my system. It's just two
| lines, one to load `viridisLite`, and one to call the `viridis`
| function. I've also attached the output of `sessionInfo`.
|
| To
2024 Feb 24
1
igraph_vertex
The reason html is specifically advised against as a format is that it
does things like mangling data such as is happening in your example. You
should repost using settings on you mail client for plain-text. Your
code should start by loading necessary packages. You should also not
post screen output versions of code since that will insert lots of
superfluous "+"'s. Some but not
2024 Mar 22
1
geom_edge & color
Dear community
Find enclosed the full working example.
Many thanks
Sibylle
Test_cat.csv
Names
Subcategory_type
sources.cyto
source
Factor
A.A
material
"A"
A
1
B.B
material
"B"
B
1
C.C
regulation
"C"
C
1
D.D
regulation
"D"
D
1
E.E
habitat
"E"
E
1
F.F
cultural
"F"
F
1
Test_adjac.csv
2024 Mar 21
1
geom_edge & color
Dear Sibylle,
your example is not working! E.g. no data for "aes_collapsed".
Best,
Kimmo
ke, 2024-03-20 kello 19:28 +0100, SIBYLLE ST?CKLI via R-help kirjoitti:
> Dear community
>
> I am using ggraph to plot a network analysis. See part 2 in the working
> example.
> Besides different colors for different groups of nodes:
> --> geom_node_point(aes(size =
2020 Apr 30
4
problem with `viridis` on Ubuntu 20.04
Il 30/04/20 03:14, Dirk Eddelbuettel ha scritto:
>
> On 30 April 2020 at 03:05, Samuele Carcagno wrote:
> | Il 30/04/20 01:39, Dirk Eddelbuettel ha scritto:
> | > Keep. It. Simple. And. Concise.
> | >
> | > And reproducible.
> |
> | I've attached a script that triggers the bug on my system. It's just two
> | lines, one to load `viridisLite`, and one to
2024 Feb 24
1
igraph_vertex
On 2/24/24 12:10, Kimmo Elo wrote:
> Hi,
>
> first of all, your example was not reproducible! But once I added
> "library(igraph)" and "library(scico)" plus generally replaced
> "aes_collapsed" by "edge_list", I started to work :-)
After copying your lead in that replacement the error I got was:
network <-
2020 Apr 30
0
problem with `viridis` on Ubuntu 20.04
On 30 April 2020 at 16:40, Samuele Carcagno wrote:
| after some further investigation I found out that the issue was related
| to some calls to the `solve` function in `make.rgb`, and indeed running
| `example(solve)` would hang my R session. After I changed the default
| BLAS with:
|
| sudo update-alternatives --config libblas.so.3-x86_64-linux-gnu
|
| the problem disappeared. The BLAS
2024 Feb 25
1
igraph_vertex
Dear coummunity
Thanks a lot to David and Kimmo. Yes I see now that I need to provide the two raw tables. Find here the reproducible example.
Kind regards
Sibylle
# R-labraries
library(circlize)
library(ggplot2)
library(igraph)
library(tidyverse)
library(RColorBrewer)
library(stringi)
library(scico)
library(plotly)
library(ggraph)
# Tables
aes<-read.csv("Test_adjac.csv",
2024 Mar 22
1
geom_edge & color
Hi,
this seems to work (assuming that your problem was the setting of
colours...):
--- snip ---
network %>%
ggraph(., layout = "auto") +
# This produces an error...
# geom_edge_arc(curvature=0.3, aes(width=(E(network)$weight/10),
color=c("darkblue", "red")[as.factor(edge_list$relationship)], alpha=0.5))
+
# ... this works :-)
2024 Feb 24
1
igraph_vertex
Hi,
first of all, your example was not reproducible! But once I added
"library(igraph)" and "library(scico)" plus generally replaced
"aes_collapsed" by "edge_list", I started to work :-)
Anyway, the error is produced by this line:
+ edge.width= network,
It seems to me that you have forgotten to name a variable here (you now
use the whole network
2024 Mar 20
1
geom_edge & color
Dear community
I am using ggraph to plot a network analysis. See part 2 in the working
example.
Besides different colors for different groups of nodes:
--> geom_node_point(aes(size = V(network)$hub_score*200, color=
as.factor(V(network)$community)))
I additionally want to consider different colors for different edge groups
The grouping is defined in the edge_list$relationship: negative
2024 Feb 25
1
igraph_vertex
Hi again,
your code is still not reproducible without modifications, but I
succeed in getting the data straight. All read.csv-command are missing
'sep="\t"', it is need to read you tsv-data.
And it could be more reproducible if you used e.g.
--- snip ---
aes<-read.csv(text=" A.A B.B C.C D.D E.E F.F
A.A 0 0 5 5 5 5
B.B 4 0 1 1 1 1
C.C 5 5 0 5 4 2
D.D 5 0 5 0 5 3
E.E
2017 Jun 21
2
Missing dependencies in pkg installs
I have a Ubuntu server with an R installation that has 384 packages installed. We are trying to replicate the system on a Red Hat Enterprise server. I downloaded the list of packages from the Ubuntu machine and read it into an R session on the new machine. Then I ran install.packages(listofpackages). Now I have 352 packages on the new machine but several very common packages (like much of the
2024 Feb 26
1
igraph_vertex
Hi,
a quick additional note: try
"edge.width= E(.)$weight"
instead of the current "edge.width= network". Seems to work and makes a
visible difference...
HTH,
Kimmo
su, 2024-02-25 kello 19:11 +0000, Kimmo Elo kirjoitti:
>
> Hi again,
>
> your code is still not reproducible without modifications, but I
> succeed in getting the data straight. All