Jaka jest odpowiednia składnia argumentu strefy czasowej dla scale_datetime () w ggplot 0.9.0

Nie mogę znaleźć informacji o ggplot2Dokumentacja 0.9.0, Przewodnik przejścia 0.9.0 lub szukaj.

Domyślam się, że w poprzednich wersjach dodajesztz argument doscale_x_datetime. Próbowałem umieścićtz kłótnia w różnych miejscachscale_x_datetime ale otrzymuj błędy. Zobacz poniżej.

Moje dane datetime są wPOSIXct format z strefą czasową GMT. Kiedy go kreślę, oś zaznacza i łamie pokazując moją lokalną strefę czasową (EST). Chciałbym, aby północ na osi była północą w strefie czasowej GMT. Jak to zrobić w ggplot2 0.9.0?

<code>attributes(data$date)
# $class
# [1] "POSIXct" "POSIXt" 

# $tzone
# [1] "GMT"

ggplot(data, aes(x = date)) +
  geom_line(aes(y = count)) +
  scale_x_datetime(breaks = date_breaks("1 day"),
                   labels = date_format("%d", tz = "UTC"))
# Error in date_format("%d", tz = "UTC") : unused argument(s) (tz = "UTC")

ggplot(data, aes(x = date)) +
  geom_line(aes(y = count)) +
  scale_x_datetime(breaks = date_breaks("1 day", tz = "UTC"),
                   labels = date_format("%d"))
# Error in date_breaks("1 day", tz = "UTC") : 
#   unused argument(s) (tz = "UTC")

ggplot(data, aes(x = date)) +
  geom_line(aes(y = count)) +
  scale_x_datetime(breaks = date_breaks("1 day"),
                   labels = date_format("%d"),
                   tz = "UTC")
# Error in continuous_scale(aesthetics, "datetime", identity, breaks = breaks,  : 
#   unused argument(s) (tz = "UTC")
</code>

questionAnswers(2)

yourAnswerToTheQuestion