plot_ly שאלה/ עז×Øה

17 views
Skip to first unread message

gooloo

unread,
Jun 13, 2016, 2:03:07ā€ÆPM6/13/16
to Israel R User Group
שלום לכולם,

אני יוצ×Ø ×’×Ø×£ (מצו×Øפ×Ŗ ×Ŗמונה) על בהיה טבל×Ŗ × ×Ŗונים (מצו×Ø×£ קובׄ CSV).



בטבלה יש עמודה שנק×Øא×Ŗ anoms שיש מהפ×Ø ×§×˜×Ÿ של שו×Øו×Ŗ עם ×¢×Øכים.

מה שאני מנהה לעשו×Ŗ הוא ליצו×Ø ×©×›×‘×” נוהפ×Ŗ על הג×Ø×£ Ā ×›××©×Ø ×× ×™ ×Øוצה לשים נקודה על הג×Ø×£ בכל מקום שיש ×¢×Øך בעמודה anoms:




p <- plot_ly(df2, x = Date, y = sessions)
p %>% add_trace(y = fitted(loess(sessions ~ as.numeric(Date))), x = Date) %>%
Ā  layout(title = "Sessions Per Day", showlegend = FALSE)


×Ŗודה
א×Øיאל
SampleData.csv

Jonathan Rosenblatt

unread,
Jun 14, 2016, 3:55:59ā€ÆAM6/14/16
to israel-r-user-group
אני אישי×Ŗ מעדיף ליצו×Ø ××Ŗ ה×Ŗ×Øשים ב- ggplot ואז להפעיל עליו ggplotly.Ā 
(בעיק×Ø ×ž×¤××Ŗ חוה×Ø × ×”×™×•×Ÿ עם plot_ly).

--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
--
Jonathan Rosenblatt
Dept. of Industrial Engineering and Management
Ben Gurion University of the Negev

Ariel Pinco

unread,
Jun 14, 2016, 4:03:20ā€ÆAM6/14/16
to israel-r-...@googlegroups.com
×Ŗודה יונ×Ŗן.

איך עכשיו על הג×Ø×£ אני מוהיף smooth line?

p <- ggplot(df2, aes(x=Date, y=sessions)) + geom_line() + geom_point(aes(y=anoms), color="red")

ggplotly(p)

Inline image 1
Thanks
Ariel Pinco


Tal Galili

unread,
Jun 14, 2016, 4:05:34ā€ÆAM6/14/16
to israel-r-...@googlegroups.com
p <- ggplot(df2, aes(x=Date, y=sessions)) + geom_line() + geom_point(aes(y=anoms), color="red") + geom_smooth()

ggplotly(p)


----------------Contact Details:-------------------------------------------------------
Contact me: Tal.G...@gmail.com |Ā 
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English)
----------------------------------------------------------------------------------------------

Ariel Pinco

unread,
Jun 14, 2016, 4:58:51ā€ÆAM6/14/16
to israel-r-...@googlegroups.com
×Ŗודה א×Ŗ זה אני מכי×Ø, זה מוהיף קו עם ×Øצועה שאו×Ŗה אני לא צ×Øיך.

×Øק קו.

×Ŗודה
א×Øיאל

Tal Galili

unread,
Jun 14, 2016, 5:00:08ā€ÆAM6/14/16
to israel-r-...@googlegroups.com
קו שעוקב אח×Øי הנ×Ŗונים או קו בשיפוע וחו×Ŗך קבועים מ×Øאש?

Sent from a smart-phone

On Jun 14, 2016, at 11:58, Ariel Pinco <ariel...@gmail.com> wrote:

×Ŗודה א×Ŗ זה אני מכי×Ø, זה מוהיף קו עם ×Øצועה שאו×Ŗה אני לא צ×Øיך.

×Øק קו.

×Ŗודה
א×Øיאל

On Tue, Jun 14, 2016 at 11:05 AM, Tal Galili <tal.g...@gmail.com> wrote:
p <- ggplot(df2, aes(x=Date, y=sessions)) + geom_line() + geom_point(aes(y=anoms), color="red") + geom_smooth()

ggplotly(p)


----------------Contact Details:-------------------------------------------------------
Contact me: Tal.G...@gmail.com |Ā 
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English)
----------------------------------------------------------------------------------------------


2016-06-14 11:02 GMT+03:00 Ariel Pinco <ariel...@gmail.com>:
×Ŗודה יונ×Ŗן.

איך עכשיו על הג×Ø×£ אני מוהיף smooth line?

p <- ggplot(df2, aes(x=Date, y=sessions)) + geom_line() + geom_point(aes(y=anoms), color="red")

ggplotly(p)

<image.png>

Ariel Pinco

unread,
Jun 14, 2016, 5:13:16ā€ÆAM6/14/16
to israel-r-...@googlegroups.com
קו שעוקב אח×Øי הנ×Ŗונים

Tal Galili

unread,
Jun 14, 2016, 5:14:46ā€ÆAM6/14/16
to israel-r-...@googlegroups.com
כזה?
p <- ggplot(df2, aes(x=Date, y=sessions)) + geom_line() + geom_point(aes(y=anoms), color="red") +Ā geom_smooth(method = "lm")

ggplotly(p)


----------------Contact Details:-------------------------------------------------------
Contact me: Tal.G...@gmail.com |Ā 
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English)
----------------------------------------------------------------------------------------------


Ariel Pinco

unread,
Jun 14, 2016, 5:40:23ā€ÆAM6/14/16
to israel-r-...@googlegroups.com
אני ×Øוצה ×Øק א×Ŗ הקו הכחול, בלי ה×Øצועה באדום:

Inline image 1

amit gal

unread,
Jun 14, 2016, 7:50:02ā€ÆAM6/14/16
to israel-r-...@googlegroups.com

×Ŗוהיף
se=F
כפ×Øמט×Ø ×œ×’××•×ž×˜×Øיי×Ŗ ההחלקה.

Ariel Pinco

unread,
Jun 14, 2016, 9:26:41ā€ÆAM6/14/16
to israel-r-...@googlegroups.com

עובד, ×Ŗודה ×Øבה.

Reply all
Reply to author
Forward
0 new messages