Re: [R] Adding legend

2015-06-03 Thread David Winsemius
On Jun 3, 2015, at 9:39 AM, John Wasige wrote: > ​Hello community, > > Could somebody help on how I can > ​add ​ > a legend to my heatmap plot. I need to know what values from the data do > colours ( "red","yellow", "yellowgreen","lightblue4") represent from the > data. The script is here below

[R] Adding legend

2015-06-03 Thread John Wasige
​Hello community, Could somebody help on how I can ​add ​ a legend to my heatmap plot. I need to know what values from the data do colours ( "red","yellow", "yellowgreen","lightblue4") represent from the data. The script is here below and attached is the test dataset. Thanks for your help. Hohn

[R] Adding legend

2015-06-03 Thread John Wasige
​Hello community, Could somebody help on how I can a legend to my heatmap plot. I need to know what values from the data do colours ( "red","yellow", "yellowgreen","lightblue4") represent from the data. The script is here below and attached is the test dataset. Thanks for your help. Hohn ###

Re: [R] adding legend to choropleth map using GISTools

2014-01-12 Thread Jim Lemon
On 01/13/2014 10:19 AM, Martha Zorn wrote: I am having problems with adding legend to choropleth map using GISTools. The map that I get does not include a legend (see attached). Thanks for any help you can provide. Below is my code: #read in sample at001<-read.csv("C:/Users/martha/Dropbox/s

Re: [R] adding legend to choropleth map using GISTools

2014-01-12 Thread Jim Lemon
On 01/13/2014 10:19 AM, Martha Zorn wrote: I am having problems with adding legend to choropleth map using GISTools. The map that I get does not include a legend (see attached). Thanks for any help you can provide. Below is my code: #read in sample at001<-read.csv("C:/Users/martha/Dropbox/s

[R] adding legend to choropleth map using GISTools

2014-01-12 Thread Martha Zorn
I am having problems with adding legend to choropleth map using GISTools. The map that I get does not include a legend (see attached). Thanks for any help you can provide. Below is my code: #read in sample at001<-read.csv("C:/Users/martha/Dropbox/shiny/sample.csv") a <- matrix(at001$npovr, n

Re: [R] Adding legend to heatmap

2011-05-11 Thread Uwe Ligges
See ?legend and PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Uwe Ligges On 11.05.2011 16:23, rugma gopakumar wrote: Hello, Myself Rugma Gopakumar.I would like to know how to add a

[R] Adding legend to heatmap

2011-05-11 Thread rugma gopakumar
Hello, Myself Rugma Gopakumar.I would like to know how to add a legend to a heatmap.. Regards, Rugma Gopakumar. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] adding legend to matplot

2011-05-02 Thread kcchalmers
Hi all, I am new to R programming and I was trying to write a simple code in order to plot my data. The problem is that I am not able to insert a legend corresponding to each column of the data matrix. Please can someone help me out. How can i directly get the legend relating to each data curve. T

Re: [R] Adding Legend about two quantile lines at ggplot

2010-10-20 Thread Dennis Murphy
Hi: scale_manual() is a little tricky when you build the legend from within the plot. I used shorter labels than you, but this worked for me: ggplot(mydata, aes(y=score2, x=score1)) + geom_point() + stat_quantile(quantiles=c(0.50), aes(colour='red'), size = 1) + stat_quantile(quantiles=c(0

[R] Adding Legend about two quantile lines at ggplot

2010-10-19 Thread YN Kim
Hi, all. I'd like to add legend on my graph but I can't. My code is follows. library(ggplot2) score1<-rnorm(100,0,5) score2<-rnorm(400,10,15) mydata<-data.frame(score1,score2) ggplot(mydata,aes(y=score2,x=score1))+geom_point()+stat_quantile(quantiles=c(0.50),col="red")+stat_quantile(quantiles=c(0

[R] Adding legend to lda-plot, using the MASS-package

2010-10-14 Thread Arve Lynghammar
Hi everyone! I'm going to analyze the attached data set, but I'm not able to add the correct legend. In other words, I can't see which species is which. http://r.789695.n4.nabble.com/file/n2994991/test_discriminant_anal_alle.xls test_discriminant_anal_alle.xls This is my commands: data<- read.