This vignette demonstrates the usage of the
download_filtered_tableau_image function in the R package.
We’ll use the Super Sample Superstore example in Tableau to showcase how
to download filtered images by filtering on various combinations of
region and category.
library(vvtableau) # Authenticate on the Tableau Server. tableau <- authenticate_server( server = "https://tableau.server.com", username = "your_username", password = "your_password" ) # Set the view ID for the Super Sample Superstore example view view_id <- "super-sample-superstore-view-id" # Set the path to save the downloaded images path_to_save <- "path/to/save/images/"
Let’s download images for different combinations of region and category filters.
For this example, the function will iterate over each row of the dataframe and download the filtered images for each combination of region and category. In this case, it will download images for the following combinations:
“West” region, “Furniture” category
“East” region, “Technology” category
“Central” region, “Office Supplies” category
You can customize the
filter_df dataframe to include
more combinations of region and category filters as needed.