Description Usage Arguments Value Examples
For more information, please refer to https://developers.brandwatch.com/docs/chart-dimensions-and-aggregates
1 2 3 4 |
project_id |
The project id in which the specified query is contained. Obtain a list of project IDs using bwr_get_projects(). |
query_id |
The query ID you'd like to see tweeter data for. Note that you can only specify a query or a query group, not both. |
querygrp_id |
The query group ID you'd like to see total mentions for. Note that you can only specify a query or a query group, not both. |
date_range |
A character vector containing 2 date values in YYYY-mm-dd format. The first value is the beginning of your desired date range and the second value is the end of the date range. |
aggregate |
The numeric variable which you'd like to return results for (e.g. 'volume') |
dimension1 |
The first dimension which you'd like to split your data by (e.g. 'months') |
dimension2 |
The second dimension which you'd like to split your data by (e.g. 'countries') |
filters |
(Optional) A list of key-value pairs to filter the mentions query by. Use the bwr_filters_get() function to find out all available filters. |
token |
The authentication token, acquired using bwr_auth() |
Returns a data frame (including some list-columns) of the JSON results, aggregated according to your 2 dimensions.
1 2 3 4 5 6 7 8 9 | ## Not run: my_project <- bwr_projects_get()$id[1]
my_query <- bwr_query_get(project_id = my_project)$id[1]
my_mentions_chart <- bwr_mentions_chart(project_id = my_project,
query_id = my_query,
date_range = c('2018-01-01', '2018-02-01'),
aggregate = "month",
dimension1 = "sentiment",
dimension2 = "volume")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.