Hello. I am drawing a graph using graphviz. It works but now, I am trying
to use some palettes from the RColorBrewer pakcage. Any idea why this
diagram works when the code (in .Rmd) is

```{r, engine='dot', echo=F}
digraph unix{
  size=30;
  ratio=compress;
 
  param [label="  Contrastes paramétricos  ", shape=oval,
           style="filled,rounded,diagonals",
fillcolor=dodgerblue3,
           fontcolor=gray90];
 
```

but it doesn't work if I try to use some colors of any palette

```{r, echo=FALSE}
library("RColorBrewer")
colores <- brewer.pal(11,"PiYG")
```

```{r, engine='dot', echo=F}
digraph unix{
  size=30;
  ratio=compress;
 
  param [label="  Contrastes paramétricos  ", shape=oval,
           style="filled,rounded,diagonals",
fillcolor=colores[1],
           fontcolor=gray90];
 
```

Thank you very much!!


------
Aurora González Vidal

Sección Apoyo Estadístico.
Servicio de Apoyo a la Investigación (SAI).
Vicerrectorado de Investigación.
Universidad de Murcia
Edif. SACE . Campus de Espinardo.
30100 Murcia

@. aurora.gonzal...@um.es
T. 868 88 7315
F. 868 88 7302
www.um.es/sai
www.um.es/ae

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to