शुरू करेंमुफ़्त में शुरू करें

इनलाइन कोड के साथ कैप्शन

अब आइए अपने कैप्शन में कुछ इनलाइन R कोड जोड़ें.

यह अभ्यास पाठ्यक्रम का हिस्सा है

flexdashboard के साथ डैशबोर्ड बनाना

पाठ्यक्रम देखें

अभ्यास निर्देश

  • कैप्शन को बदलकर "Source: Bay Area Bike Share, Date: " कर दें, जहाँ अंत में डेटा की तारीख दिखाई दे। (वैरिएबल data_date का उपयोग करें).

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

{"my_document.Rmd":"---\ntitle: \"Bike Shares Daily\"\noutput: \n  flexdashboard::flex_dashboard:\n    orientation: columns\n    vertical_layout: fill\n---\n\n```{r setup, include=FALSE}\nlibrary(flexdashboard)\nlibrary(readr)\nlibrary(leaflet)\nlibrary(DT)\nlibrary(tidyverse)\nlibrary(lubridate)\n\ntrips_df <- read_csv('https://assets.datacamp.com/production/repositories/1448/datasets/1f12031000b09ad096880bceb61f6ca2fd95e2eb/sanfran_bikeshare_joined_oneday.csv')\n\ndata_date <- unique(as.Date(trips_df$start_date))\n```\n\nColumn \n-----------------------------------------------------------------------\n### Origins\n\n```{r}\n\ntrips_df %>%\n  rename(latitude = start_latitude,\n         longitude = start_longitude) %>%\n  group_by(start_station_id, latitude, longitude) %>%\n  count() %>%\n  leaflet() %>%\n  addTiles() %>%\n  addCircles(radius = ~n)\n\n```\n\n> Source: Bay Area Bike Share\n\n\n"}
कोड संपादित करें और चलाएँ