Sorry, if this is not applicable to the question, but a similar problem
with theme(legend.title) was
posted and answered here:
http://stackoverflow.com/questions/30524663/ggplot2-themelegend-title-ignores-vjust-and-hjust-arguments
On 03.06.2016 14:24, Manuel Spínola wrote:
> Sorry my mistake.
>
> df <- reshape2::melt(outer(1:4, 1:4), varnames = c("X1", "X2"))
>
> p1 <- ggplot(df, aes(X1, X2)) + geom_tile(aes(fill = value))
>
> p1 + guides(fill = guide_colorbar(barwidth = 0.5, barheight = 10,
> title.vjust=0.1))
>
> p1 + guides(fill = guide_colorbar(barwidth = 0.5, barheight = 10,
> title.vjust=0.5))
>
> p1 + guides(fill = guide_colorbar(barwidth = 0.5, barheight = 10,
> title.vjust=1))
>
>
> 2016-06-03 5:47 GMT-06:00 Roman Luštrik <
roman....@gmail.com
> <mailto:
roman....@gmail.com>>:
> *Manuel Spínola, Ph.D.*
> Instituto Internacional en Conservación y Manejo de Vida
> Silvestre
> Universidad Nacional
> Apartado 1350-3000
> Heredia
> COSTA RICA
>
mspi...@una.ac.cr
>
mspin...@gmail.com
> Teléfono: (506) 2277-3598
> Fax: (506) 2237-7036
> Personal website: Lobito de río
> <
https://sites.google.com/site/lobitoderio/>
> Institutional website: ICOMVIS <
http://www.icomvis.una.ac.cr/>
> <mailto:
ggp...@googlegroups.com>
> To unsubscribe: email
ggplot2+u...@googlegroups.com
> <mailto:
ggplot2%2Bunsu...@googlegroups.com>
> <mailto:
ggplot2+u...@googlegroups.com>.
> <mailto:
ggp...@googlegroups.com>
> To unsubscribe: email
ggplot2+u...@googlegroups.com
> <mailto:
ggplot2%2Bunsu...@googlegroups.com>
> <mailto:
ggplot2+u...@googlegroups.com>.
> *Manuel Spínola, Ph.D.*
> Instituto Internacional en Conservación y Manejo de Vida Silvestre
> Universidad Nacional
> Apartado 1350-3000
> Heredia
> COSTA RICA
>
mspi...@una.ac.cr <mailto:
mspi...@una.ac.cr>
>
mspin...@gmail.com <mailto:
mspin...@gmail.com>
> Teléfono: (506) 2277-3598
> Fax: (506) 2237-7036
> Personal website: Lobito de río
> <
https://sites.google.com/site/lobitoderio/>
> Institutional website: ICOMVIS <
http://www.icomvis.una.ac.cr/>
> <mailto:
ggplot2+u...@googlegroups.com>.
Tim Richter-Heitmann (M.Sc.)
PhD Candidate
International Max-Planck Research School for Marine Microbiology
University of Bremen
Microbial Ecophysiology Group (AG Friedrich)
FB02 - Biologie/Chemie
Leobener Straße (NW2 A2130)
D-28359 Bremen
Tel.: 0049(0)421 218-63062
Fax: 0049(0)421 218-63069