Thanks Hadley for your input.
The following code works fine now.
Thanks again
con = textConnection("inputs var1 var2 var3
100 10 5 2
1000 20 10 4
5000 30 15 8
1 40 20 16
3 50 25 32")
data = read.table(con, header=TRUE)
data
data = melt(data, id="inputs")
g <- ggplot(data,aes(x=inpu
On Mon, Jan 16, 2012 at 6:05 PM, Mary Kindall wrote:
> Thanks for reply
> I wanted to have legend name with spaces. Right now I am using the
> following code but it produce two legends. I have to use Gimp to cut the
> redundant legend.
Your basic problem is that you're using the fill and colour
a
m_point()
>> g <- g + scale_x_continuous(name='Number of inputs')
>> g <- g + scale_y_continuous('Conversion time (sec.)')
>>
>> Felipe D. Carrillo
>> Supervisory Fishery Biologist
>> Department of the Interior
>> US Fish &
;Number of inputs')
> g <- g + scale_y_continuous('Conversion time (sec.)')
>
> Felipe D. Carrillo
> Supervisory Fishery Biologist
> Department of the Interior
> US Fish & Wildlife Service
> California, USA
> http://www.fws.gov/redbluff/rbdd_jsmp.aspx
>
>
://www.fws.gov/redbluff/rbdd_jsmp.aspx
From: Mary Kindall
>To: r-help@r-project.org
>Sent: Monday, January 16, 2012 1:14 PM
>Subject: [R] ggplot- using geom_point and geom_line at the same time
>
>Hi
>I am plotting line chart using ggplot and want to use geom_line and
>geo
Hi
I am plotting line chart using ggplot and want to use geom_line and
geom_point simultaneously. I want to rename my legend but uptonow I remain
unsuccessful.
Someone please point what to add for renaming the legend.
I attached my example below.
Thanks
con = textConnection("inputs var1 var2 v
Hi
I am plotting line chart using ggplot and want to use geom_line and
geom_point simultaneously.
I get the plot but now I have two legends. None of the legend is
representing the true values. I need the legend with shape and color both.
Thanks
> con = textConnection("inputs var1var2va
7 matches
Mail list logo