Thanks Jim,
I appreciate that you spend so much time helping me on this.
I translated your code to use my plot_ly function this way, I'm not sure if
this is correct, but tried to match your x and y axis and the labels. Here is
the complete code including data below, but it seems like my code "ti
Sorry, this still doesn't work.
When I use that expression in "ticktext" parameter, it shows those every 3rd
label in the beginning, and after they finished, it shows some remaining values
from "year" column.
When I tried with my real data, it was showing the original x axis values as
lables, i
OK, I think I got this:
For example every 3rd element would be:
sydf$monthday[seq(1, length(sydf$monthday), 3)]
Thanks,
Steven
-Original Message-
From: nst...@gmail.com
Sent: Tuesday, July 16, 2019 9:39 AM
To: 'Jim Lemon'
Cc: 'r-help mailing list'
Subject: RE: [R] Plotting in R
Than
Thanks Jim,
Yes, I only want to show the month and day as labels, because on my chart I am
actually showing 2 line charts, one from the previous year, and one from this
year, to compare them, and the month and day are matching for them, but the
year would be different, so it makes sense to show
Thanks Jim.
I am trying to apply this to my version with plot_ly, and couldn't make it to
work.
The sydf$year1 field is numeric, so the min() and max() works, but when I tried
to use your formula for the sydf$monthday field I get an error:
yrticks <-
as.Date(as.character(seq(min(sydf$monthday),
Thanks Jim, that worked.
> I expected that the axis labels would be crowded so I used the plotrix
> library to stagger the x-axis labels. Hope this solves your problem.
I liked how that showed, not overlapping on each other. I wasn't aware of the
plotrix library.
In my code I was using plot_ly
Sorry Jim, I saw that you answered to the other Steven.
I had a question and nobody responded to that yet, I thought you responded
to me.
I searched for mine and your email came up, but I realize the subject line
is different. My question was:
"How to change x axes labels in plot_ly?"
-Origina
Hi Jim,
Thanks for your email.
My question was: how to change the x axis labels without changing the chart.
Or is that not possible?
Using your example, I added another column:
sydf<-read.table(text="year1 month-day rate
1993 05-01 0.608
1994 06-01 0.622
1996 07-01 0.623
1998 08-01 0.647
2000
on do you use
for that?
I have read the articles, and I created a Gist example on Github:
https://gist.github.com/nstefi/f67f8cbc171a2dc6e4b8cc876dfd0c81
Here is the code:
library(plotly)
chart_data <- structure(list(`Month-Day` = c("05-01", "05-15", "05-31"
Hi everyone,
I have been struggling with this for a while, and I hope someone can give me
some advice.
I have built a line chart that shows a cumulated value of number of
transactions, and there are 2 lines on the chart comparing last year with
this year.
The way I matched last year's data wi
10 matches
Mail list logo