Wikipedia outreach by field of science

Since the previous posting, the Scholarly Article Citation dataset on Figshare has been upgraded to include also DOIs. Great! I’d imagine that unlike with PMIDs, there’d be more coverage from Aalto with DOIs.

Like in all altmetrics exercises so far, I first gathered all our articles published since 2007 and having a DOI, according to Web of Science. I also saved some more data on the articles such as the number of cites and the field(s) of science. This data I then joined with the Figshare set by the DOI field. Result: 193 articles.

Which research fields do these articles represent?

Web of Science makes use of five broad research areas. With some manual work, I made a lookup table where the various subfields are aggregated onto these areas. Now I could easily add the area name to the dataset by looking at the subfield of the article. To make life easier, I picked only the first field if there was more than one. Within each area, I then calculated the average citation count, and saved also the number of articles by area (group size). With these two values, it was now possible to construct a small “network” graph; node size would tell about the article count within that area, and node color the average number of citations. But how to keep the areas as ready-made clusters in the graph, without any edges?

A while ago I read about a neat trick by Clement Levallois on the Gephi forum. With the GeoLayout plugin, you can arrange nodes to the canvas based on their geocoordinates, using one of the projections available. As a bonus, the GEFX export format preserves this information in the x and y attribute of the viz:position element. This way, the JavaScript GEXF Viewer knows where to render the nodes.

gexf.

What coordinates to use, where to get them, and how to use them? A brute force solution was good enough in my case. One friendly stackoverflower mentioned that he had US state polygons in XML. Fine. What I did is that I simply choose five states from different corners of the US (to avoid collision), and named each research area after it. For example, Technology got Alaska. Here’s the whole list from the code:

nodes.attr$state <- sapply(nodes.attr$agg, function(x) {
  if (x == 'Life Sciences & Biomedicine') "Washington" 
  else if (x == 'Physical Sciences') "Florida"
  else if (x == 'Technology') "Alaska"
  else if (x == 'Arts & Humanities') "North Dakota"
  else "Maine"
})

Then I made two new variables for latitude and longitude, and picked up coordinates from the polygon data of that state, one by one. Because polygon coordinates follow the border of the state, the shape of the Technology cluster follows the familiar, elongated shape of Alaska. A much more elegant solution of course would’ve been to choose random coordinates within each state.

One of the standard use cases of Gephi is to let it choose colors for the nodes after the result of a community detection run. Because my data had everything pre-defined, also communities aka research areas, I couldn’t use that feature. Instead, I used another Gephi plugin, Give color to nodes by Clement Levallois, who seems to be very active within the Gephi plugin developer community too. All I needed to do, is to give different hexadecimal RGB values for ranges of average citations counts. For a suitable color scheme, I went to the nice visual aid by Mike Bostock that shows all ColorBrewer schemes by Cynthia Brewer. When you click one of the schemes – I clicked RdYlGr – you get the corresponding hex values to the JavaScript console of the browser.

colorbrewer

From the last line showing all colors, I picked both end values, and three from the middle ones. To my knowledge, you cannot easily add a custom legend to the GEFX Viewer layout, so I’ll add it here below raw, copied from the R code.

nodes.attr$Color <- sapply(nodes.attr$WoSCitesAvg, function(x) {
  if (x <= 10) "#a50026" 
  else if (x > 10 && x <= 50) "#fdae61" 
  else if (x > 50 && x <= 100) "#ffffbf"
  else if (x > 100 && x <= 200) "#a6d96a"
  else "#006837"
})

From the data, I finally saved two files: one for the nodes (Id, Label, Type), and one for the node attributes (Id, Count, WoSCitesAvg, Latitude, Longitude, Color). Then, to Gephi.

New project, Data Laboratory, and Import Spreadsheet. First nodes, then attributes. Both as node tables. Note that in the node import, you create new nodes, whereas in attribute import, you do not. Note also that in the attribute import, you need to choose correct data types.

importnodeattr

First I gave the nodes their respective color. The icon of the new color plugin sits on the left-hand side, vertical panel of the Graph window. Click it, and you’ll get a notification that the plugin will now start to color the nodes.

colornodes

Nodes get their size – the value of Count in my case – from the Ranking tab.

When you install the GeoLayout plugin, it appears in the Layout dropdown list. I tried all the projections. My goal was just to place the different research area clusters as clearly apart from each other as possible, and Winkel tripel seemed to produce what I wanted.

Finally, bring node labels visible by clicking the big T icon on the horizontal panel, make the size follow the node size (the first A icon from the left), and scale the font. A few nodes will inevitably be stacked on top of each other, so some Label Adjust from the Layout options is needed. Be aware though that it can do all too much cleaning, and wipe the GeoLayout result obsolete. To prevent this from happening, lower the speed from the default to, say, 0.1. Now you can stop the adjusting on its tracks whenever necessary.

geolayout

Few things left. Export to GEFX; install the Viewer; in the HTML file, point to the configuration file; in the configuration file, point to the GEFX file – and that’s it.

It’s hardly surprising I think that multidisciplinary research gets attention in Wikipedia. Articles in this field have also gathered quite a lot of citations. Does academic popularity increase Wikipedia citing, too? Note though, that because the graph lacks the time dimension, you cannot say anything about the age of the articles. Citations tend to be slow in coming.

For those of you interested in the gore R code, it’s available as a GitHub Gist.

Posted by Tuija Sonkkila

Data Curator at Aalto University. When out of office, in the (rain)forest with binoculars and a travel zoom.
Coding , Data - Comments Off on Wikipedia outreach by field of science

Cited in Wikipedia

In a recent blog posting Altmetric announced that they have added Wikipedia to their sources. Earlier this month, WikiResearch tweeted about a CC0-licensed dataset upload to Figshare, Scholarly article citations in Wikipedia. The dataset is a 35+ MB file of cites that carry a PubMed identifier, PMID.

tweetW

From a university perspective, these are excellent news. Now we are able to start posing questions such as “Have any articles from our University got any cites in Wikipedia?”

To start a small forensic investigation in the case of Aalto University, I first need a list of all PMID’s connected to our affiliation. With the R jsonlite package, and great help from How to search for articles using the PubMed API, the following query (broken down into separate lines for clarity) returns 938 PMIDs as part of the JSON response.

pubmed.res <- fromJSON("http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi
?db=pubmed
&retmax=2000
&retmode=json
&term=aalto+university[Affiliation]")

Note that querying the Affiliation field doesn’t necessarily capture all our authors. Also, I didn’t even dare to venture into different legacy name variants of our present Schools before Aalto University saw the light in 2010.

Now, with the two PMID lists at hand, and with an appropiate join function from the R dplyr package, it was easy to check, which ones are the same in both.

joined <- inner_join(pubmeddata, wikidata, by = c("id" = "id"))

Turns out, there is only one article from Aalto University that has been cited with its PubMed identifier, but on three different pages.

        id page_id              page_title    rev_id  timestamp type
1 21573056 4355487        Apolipoprotein B 448851207 2011-09-07 pmid
2 21573056   51521 Low-density lipoprotein 430508516 2011-05-23 pmid
3 21573056   92512             Lipoprotein 586010949 2013-12-14 pmid

From the page_title we can see that the subject in all is obviously lipoproteins. For the article metadata and other interesting facts, we need to make two more API calls: one to Wikipedia and one, again, to PubMed. From Wikipedia, it’d be interesting to return the number of page watchers, if given. The size of the watcher community tells something about the commitment of the authors and readers of the page, don’t you think? From PubMed, I can get the title of the article, the date of publication etc. How quickly after publication were the cites made?

The URL stubs below make a two-part skeleton of the Wikipedia query. The PMID needs to be plugged in between. For more API details, see this documentation.


w.url.base <- "http://en.wikipedia.org/w/api.php?action=query&pageids="
w.url.props <- "&prop=info&inprop=watchers&format=json&continue="

PubMed has got several different query modules and options. For the core metadata, I need to use the esummary module, and the abstract result type. Again, the query here is split into several lines to show the parts more clearly. The PMID is added to the very end.

pubmed.abs.url <- "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi
?db=pubmed
&retmode=json
&rettype=abstract
&id="

The article Three-dimensional cryoEM reconstruction of native LDL particles to 16Å resolution at physiological body temperature was published in PLoS One on 9th May 2011. Two weeks later, on the 23th, it was cited on the Wikipedia page Low-density Lipoprotein, in the chapter describing the structure of these complex particles composed of multiple proteins which transport all fat molecules (lipids) around the body within the water outside cells.

wedit

At the moment, the page has 121 watchers, a fair bit more than the other citing pages.

   pubDate wikipediaDate               pageTitle watchers
1 2011-05-09    2011-09-07        Apolipoprotein B      N/A
2 2011-05-09    2011-05-23 Low-density lipoprotein      121
3 2011-05-09    2013-12-14             Lipoprotein       50

When there are fewer than 30 watchers, like in the case of Apolipoprotein B, Wikipedia uses the phrase Fewer than 30 watchers on the web page, and the API returns no value.

I also updated the experimental altmetrics web application with metrics courtesy of e.g. Altmetric – now also with Wikipedia! This version follows the same logic as the older one, only with fresh metrics.

Change either one of the axes to show Wikipedia, and you’ll notice a couple of things.

altm2015

First, according to Altmetric, among Aalto articles since 2007, the highest Wikipedia score is 3. But this is not our lipoprotein article, published Open Access (marked with a golden stroke in the app) in PLoS One, but The Chemical Structure of a Molecule Resolved by Atomic Force Microscopy, published in Science. The lipoprotein article is among those with 2 Wikipedia cites, in the far left. Why the difference?

Second, there seems to be quite a many articles cited in Wikipedia. Why weren’t they not in the Figshare dataset?

Altmetric is not just aggregating Wikipedia citations by PMID. Take for example the Science article. Follow the Wikipedia link in Mentioned by…, and from there, click either one of the timestamped links Added on…. You land on the diff page showing when the citation was added, by whom and how. Version control is a cool time machine. You can almost hear the author tap-tapping the text.

She doesn’t write a PMID. She writes a DOI.

It remains a minor mystery though, why Altmetric doesn’t count the citation made to Apolipoprotein B on 7th September 2011. Maybe this is just a hickup in the new process, something that Altmetric clearly says in the blog posting:

Also please note that to begin with we’ve had a big load of historical data to update all at once, so some of it is still feeding through to the details pages – but give it a week or so and it should all be up to date.

For those of you interested in R, the code on querying Wikipedia and PubMed is available as a GitHub Gist.

Posted by Tuija Sonkkila

Data Curator at Aalto University. When out of office, in the (rain)forest with binoculars and a travel zoom.
Coding , Data - Comments Off on Cited in Wikipedia

Bot

Twitter bots is something I like a lot. Up until now, I haven’t ventured into making one myself, which is a bit unfortunate because earlier, the process of getting an R/W access for a bot was much easier. Anyway, thanks to a level-headed blog posting by Dalton Hubble, I managed to grasp the basics. Timo Koola and Duukkis, central figures in Finnish bot scene, and friendly guys at that, gave helpful advice too.

The last push forward came from abroad. Early October, Andy Teucher announced that he had published a bot that used the twitteR package, something I had in mind too. My turn!

Tweet by Andy Teucher on his R-based Twitter bot

Technicalities aside, there was also the question of What?

My pick was to start with job-related text snippets, touting altmetrics.

This summer, Impactstory showed a fair amount of generosity. Although their profiles ceased to be free of charge, they gave away free waivers – and I was lucky to get one for the experimental profile showing a sample of Aalto University research outputs.

The JSON file, linked from the landing page, is packed with data. From the many possibilities, I decided to first focus on what new there is since last week. New GitHub forks, video plays, Slideshare views etc. The same information is visible on the Impactstory profile. It’s the small flag with a + sign and number, just after the metrics label.

Impacstory flag showing new activity since last week

It took a while to get familiar enough with the JSON, and how to traverse it with R. Modelling the tweet was another thing that needed a number of test rounds. The last mile included e.g. finding out how to fit in the URL of the product. In here, Andy’s GitHub repo of the Rare Bird Alert Twitter Bot came to rescue: he had done the URL shortening with Bitly.

I had nurtured the fancy idea of (somehow) making use of Unicode block elements like Alex Kerin has done. However, after some experiments in my test account I gave up. They might come handy in showing a trend, though.

Test tweets with sparklines

Setting up a new Twitter account for the bot was of course easy, but even here was something new to learn. Did you know that you can have multiple, custom Gmail address variants within one account?

So, here is the WeeklyMetrics Twitter bot in its present shape. What is still on a test phase, is running the R script successfully in batch. The cron scheduling seems to work OK, but as Eric Minikel points out at the end of his thorough posting, making the script robust asks probably for some tryCatch blocks. The Impactstory server could be temporarily on hold, Bitly’s likewise. At the moment, my script assumes happily that all is safe and sound in the universe.

The R code

Posted by Tuija Sonkkila

Data Curator at Aalto University. When out of office, in the (rain)forest with binoculars and a travel zoom.
Coding , Data , Learning - Comments Off on Bot

Journal Metrics by Scopus

Some days ago, William Gunn, Head of Academic Outreach for Mendeley, tweeted about the availability of the latest Journal Metrics.

Tweet about Journal Metrics by Scopus

The experimental web application of (alt)metrics on our publications since 2007 includes now

The number of years is solely a matter of layout; the table in the Data tab has so many columns already that you need to scroll horizontally to see them all, and that’s a pain. AFAIK the values in SNIP 2012 and SNIP 2013 are identical, so I left out the previous year.

Short excerpts from the web page of respective metrics (bolding is mine):

SNIP measures contextual citation impact by weighting citations based on the total number of citations in a subject field. The impact of a single citation is given higher value in subject areas where citations are less likely, and vice versa.

The IPP measures the ratio of citations in a year to scholarly papers published in the three previous years divided by the number of scholarly papers published in those same years. The IPP is not normalized for the subject field and therefore gives a raw indication of the average number of citation a publication published in the journal will likely receive.

SJR is a measure of scientific influence of scholarly journals that accounts for both the number of citations received by a journal and the importance or prestige of the journals where such citations come from. It is a variant of the eigenvector centrality measure used in network theory. Such measures establish the importance of a node in a network based on the principle that connections to high-scoring nodes contribute more to the score of the node

While at it, I also added the possibility of filtering publications by School when all items are visible, i.e. nothing is selected from the Title nor Journal.

Please note that the citation count in this app comes from the Web of Science (WoS), not from Scopus.

Posted by Tuija Sonkkila

Data Curator at Aalto University. When out of office, in the (rain)forest with binoculars and a travel zoom.
Coding , Data - Comments Off on Journal Metrics by Scopus

On game articles and megajournals

On a hot work day like this, you need to take a relaxing break from time to time. While at it, why not play with the altmetrics web app? For example, you might ask yourself: are there any publications on games or gaming? Well yes, indeed there are.

But before we continue, some general remarks on two extra data sets.

The colour of the circle still shows the School, but some circles have got a yellowish outer layer (that’s stroke in the ggvis parlance, and the colour is officially gold). This tells that the item – article or journal, depending on the dimension – is Open Access. More precisely, one that belongs to the core journal collection of Web of Science, and has a record in the Directory of Open Access Journals (DOAJ). I mentioned this in my previous posting, but let me repeat: data is courtesy of Lib4RI from Switzerland. Danke schön!

The other new data set is of Finnish origin, by Publication Forum (JUFO). JUFO is now among the values you can choose to either axis. What JUFO does is that it gives a ranking to publications. You may have heard, that Ministry of Education and Culture is revising the funding model for universities as of 2015. Here’s a quote from the proposal:

The publication ratings system devised by the publication forum would be used as a rating in the computation of funding so that the quality perspective would be strengthened over a transitional period of 2015-2016 and would be even more pronounced as of 2017. During the transitional period the rating of publications would be executed so that in Level 0 the coefficient for peer reviewed scientific articles and publications would be 1, in Level 1 it would be 1.5 and in Levels 2 and 3 it would be 3.

As far as I know, the Level 0 is not used any longer, or at least it is absent from the data. Few publications have no Level at all. If you see some circles that float in the outskirts of the plotted graph, it’s these ones, because without any value they don’t fit in the scale.

BTW, if you wonder what JUFO stands for, it comes from the Finnish word Julkaisufoorumi.

Back to games.

Citations and JUFO ranking of publications on game

Here we have, in a JUFO ranking vs WoS citation comparison, 10 items chosen from the Title dimension (type game). But wait, why only 8 circles? That’s because some share exact the same values, and are thus plotted on top of each other.

Articles are spread on all JUFO Levels. One Open Access item on Level 2.

All but two have been cited, but one is higher on the vertical axis. Hover over it. From the tooltip you’ll see the first words of the title. It’s about the psychophysiology of none else than James Bond, published in the journal Emotion in 2008.

What about altmetrics? Change the vertical axis to Twitter and horizontal to, say, Altmetric score.

Altmetric score vs Twitter on articles about games

Now the picture changes a little. The most tweeted article is the one published in PLOS One, which is Open Access. To me, this seems logical; it doesn’t usually make much sense to tweet about an URL that cannot be accessed by all readers.

In their posting The 3 dangers of publishing in “megajournals”–and how you can avoid them, the ImpactStory blog refers to research findings which state that Open Access can get you more readers, and also more citations. Here, we cannot really see either, for two reasons.

First, to have any clue of the amount of readers, i.e. page views and PDF downloads, you need to traverse the links all the way to the publication site, and find the Metrics page or some such. It’s worth doing, though, if you have time, because information there gives much more context.

Second, there is only one Open Access item in my small sample, published last year. It has zero WoS citations so far, but you’d need to be a clairvoyant to say anything more. From my small PLOS ALM visualization you can check the (somewhat outdated) status of that article, Keep Your Opponents Close: Social Context Affects EEG and fEMG Linkage in a Turn-Based Computer Game.

Altmetrics of one PLOS One article

If you’re interested in Altmetric scores, follow the links to their article landing page, and have a look at the percentiles given there, in the Score tab. There is also a link to this helpful knowledgebase article on how the score is calculated. In this game sample, it looks as if the amount of tweets would affect the score, don’t you think?

Talking about megajournals, do we have examples of them in this web application? Turns out there are only two: PLOS ONE, and Scientific Reports.

WoS vs Twitter of the so-called megajournal articles

It looks like being Open Access doesn’t harm impact, and why would it? A lot of activity here, both in the number of tweets and citations. But, citations and tweets don’t go hand in hand, something that has been shown to be the case.

Posted by Tuija Sonkkila

Data Curator at Aalto University. When out of office, in the (rain)forest with binoculars and a travel zoom.
Coding , Data - Comments Off on On game articles and megajournals

Open Access items and altmetrics

Lib4RI aka libraries of the four research institutes of the ETH-Domain announced some days ago that they have made a list of all Open Access journals included in Science Citation Index Expanded 2013 (SCIE). Nice work! Matching is done against the Directory of Open Access Journals (DOAJ).

I added this information to the altmetrics web application of our publications since 2007. OA items are now indicated by a golden stroke around the circle.

There are few items among the PLOS articles published in the print version of PLOS Computational Biology, PLOS Medicine and PLOS Biology, respectively. Unlike in the Lib4RI data, their ISSN differs from that of the E-ISSN. Here are the correct ones: 1553-734X, 1549-1277, 1544-9173. I noticed these small typos thanks to the visualization.

Posted by Tuija Sonkkila

Data Curator at Aalto University. When out of office, in the (rain)forest with binoculars and a travel zoom.
Coding , Data - Comments Off on Open Access items and altmetrics

Software, slides, videos, e-prints and articles

There are now three separate and partly overlapping views on (alt)metrics of Aalto University research outputs, published roughly during the last decade. Majority is from recent years, but few date back to early 2000.

The variety and incompleteness reflects the fact that, in this context, data is both dynamic and somewhat arbitrary due to a variety of reasons. So, everything presented here should be taken with a grain of salt. NISO Altmetrics Standards Project White Paper, open for comments still today, is the definitive source for those of you interested in this topic.

Altmetric

The first view is an application around articles, based on data from Altmetric with citations and metadata from Web of Science. For more info, see this recent posting.

ImpactStory

The second one is an ImpactStory profile that shows a sample of other research artefacts than articles: arXiv e-prints, Figshare datasets, GitHub repositories, SlideShare slides, and videos from Vimeo and YouTube. Except arXiv items, the gathering process was manual: I made a Google search of each one to our site, and checked every hit so that non-Aalto authors were excluded. Still, some misunderstandings are of course possible.

The arXiv ID’s are taken from the local Tenttu database which so far serves as the official source of Aalto publications, although the situation is a bit fuzzy due to ongoing changes in the local infrastructure.

Tenttu didn’t know of any PMID’s. There were several Google hits to reference lists but only three seemed to be by locals. However, I couldn’t be sure, so I left them out.

Here, particularly interesting are GitHub repos. To my knowledge, this is the first time software and code made under the hood of the University are laid out like this, as a collection. Note that this is by far not all code there is; many research teams use a local storage, or the cloud repository is somewhere else than at GitHub, notably at Bitbucket.

There are a few items that don’t have a title. I’ve understood that for some reason, there is no relevant data at the other end of the link, or the URL is rotten. Due to some issues with the profile at the moment, I have not managed to delete these bogus ones (also, the whole Webpage section is redundant). Remember, ImpactStory Profiles is still a new and evolving service.

Profiles are mainly for individual researchers. For them, the job is easy. Rather that giving a list of item ID’s like I did, they can automatically sync their accounts, say, with GitHub, and pull other items with their personal ORCID number.

Based on a Google search on site:aalto.fi, there are only two aaltoians (is there such a word?) with an ImpactStory profile: Aki Vehtari, and Enrico Glerean. Of course there can be others. They just don’t mention it anywhere on aalto.fi.

BTW, if you haven’t seen the Happy birthday charts Aki has made with Andrew Gelman, do take a look. The New York Times ran a story on it in its Science section in December last year.

Talking about altmetrics, Enrico shows a great deal of activity. For example, he has brought Altmetric badges on his web page.

PLOS

The third view is an interactive web visualization built on PLOS ALM data. The DOI sample is the same as in the first view but the metrics are newer, from today, 18th July. As a proof of concept really, I also added Altmetric badges at the end of each line. A caveat is that they emerge only after you refresh the page. I need to fix that some day.

For some more info on this PLOS view, see this posting.

EDIT 25 July

As of yesterday evening, the ImpactStory profile is working much better, thanks to their listening to my bug report, and fixing things.

Now the statistics is correct, showing how many live products/items there are, how many of these have some metrics whatsoever, and again, how many of these have gathered some new metrics this week. Note that all these are links.

ImpactStory profile main page

What I also find a nicely done service, is the traditional email digest that accompanies the profile. By default, the owner of the profile – me, in this case – gets it once a week. Look how ImpactStory gives feedback, and encourages!

ImpactStory email digest 1/3

ImpactStory email digest 2/3

ImpactStory email digest 3/3

Posted by Tuija Sonkkila

Data Curator at Aalto University. When out of office, in the (rain)forest with binoculars and a travel zoom.
Coding , Data - Comments Off on Software, slides, videos, e-prints and articles

Altmetrics from different angles

As of this week, there are exactly 900 articles published by Aalto University since 2007 recorded by Web of Science of Thomson Reuters, having a DOI, and with some altmetrics aggregated by Altmetric. With this data at hand, I made an updated version of the interactive web application I wrote about previously.

Now you can

  • check any two metrics against each other in Compare. Select metrics to the respective axis, and see the result rendered nicely (thanks to ggvis, an R wrapper to Vega), coloured by School and decorated with a tooltip
  • have a quick overview in All metrics
  • in the Data tab, sort columns, search over all items, or proceed via the URL to the article landing page at Altmetric
  • query any DOI against the Altmetric API. In other words, this tab returns live data.

Due to some present shortcomings in Compare, note that

  • if you have only item selected, it is rendered together with a dummy one. Ignore that, please.
  • if you have zero items selected – which is the case at start, and any time you switch dimensions – all 900 items are plotted. This means of course, that you cannot decipher all points because most of them are piled on top of each other near the origin. Also, there is no Data available then, mainly because I suspect that the free beta account provided by RStudio would have hard time serving it.

The app doesn’t tell quite the whole story.

First, to simplify things, I’ve changed all missing values to zeros. Second, some articles are in fact coauthored by several Schools, but in the process of duplicate removal, only one unique item is left, so one School gets it all. Which one of them, is more or less random.

To get you going, here are some possible use cases.

First, let’s have a look at water. Always a good topic.

While Title selected, type water repeatedly and choose as many items as you can (10). At least three Schools deal with water. The default comparison is between WoS citations and Mendeley saves. In my selection, one article stands out in this context.

WoS vs Mendely on some water-related articles

Hover over the lone blue circle in the upper right corner, and you’ll see a few characters of its title (Directional water co), the year of publication (2010), and the name of the journal (Nature). Switch over to the All metrics tab. Here, graphics is courtesy of rCharts, another great R wrapper, this one to NVD3.

All metrics of some water-related articles

Because of the scale and the high values of both WoS and Mendeley, other bars are barely discernible. Opt out WoS and Mendeley by clicking the dot next to their legend. This way, the undergrowth shoots upwards.

Smaller metrics values of selected articles

Note that not all values are conceptually equal; NrOfAuthors isn’t a score but an attribute of the article, and the Altmetric score isn’t a count in the same manner than the number of tweets, for example.

Move over to Data. Sort articles by year. In this sample, the one with most citations is also the oldest, which makes sense.

Data tab of some water-related articles

Continue by sorting the columns one by one. You’ll see that many metrics are all zeros (remember what I said about zeros above), Twitter being often an exception.

Next, some physics.

In their paper Astrophysicists on Twitter: An in-depth analysis of tweeting and scientific publication behavior ($) Haustein et al. show how, in their target group, there is a general negative relation between scientific impact and Twitter activity, although there are exceptions. Is that the case at Aalto University too? Switch the dimension to Journal, and pick those ones with astro in the name (there are 4). We make a quick & dirty assumption that articles published in them indeed are astrophysics. Let the x-axis remain WoS, but change y to Twitter.

Journals in astrophysics and their WoS vs Twitter count

One article is quite high up on the Twitter axis whereas the rest hang low, which seems to back up research findings. The comparison between Twitter and NrOfAuthors reveals further that the exception has only one author. A notable feature of astrophysics articles is that the number of authors is relatively big, in hundreds rather than in tens.

Journals in astrophysics, NrOfAuthors vs Twitter count

What is the affiliation of the author? The color of the circle tells that the School is ENG and not SCI where the major part of astrophysics research is done at Aalto University, in the Metsähovi Radio Observatory.

Out of curiosity, let’s have a closer look at the article. Go to the Data tab, sort by the Twitter column, pick the highest one, and follow the link to Altmetric. In there, peak into Demographics tab. There we have a world map of tweeters, and the type they belong to, determined by what people write in their Twitter profile I understand. It seems that the article has got most attention among general public.

Click the title at Altmetric. This brings you to the site of the journal, ScienceDirect by Elsevier. But wait – because here we have a non-open access journal, you might not get any further. Instead, let’s turn to Google Scholar. From this profile page, we can finally see that indeed the author is not an astrophysicist, and – if you are interested to read the article – it is available as an Accepted Author Manuscript version at ArXiv.org.

There are 7 different authors among these 19 articles we have been investigating. From them, the only one with a Twitter account is he who turned out not to be an astrophysicist. However, like Haustein et al. note, Twitter is a versatile tool.

Researchers have multidimensional lives – they might be avid runners, foodies, sport fans or enjoy stamp collecting – and their discussions on Twitter might include these various activities (Bauer, 2013). Hence, at least in the case of the astrophysicists analyzed in this paper, researchers’ activity on Twitter should not be considered as purely scientific, as Twitter is not restricted to this single type of communication.

I haven’t a clear picture of how much Twitter is used at our University, although I have a hunch: not very much. A good starting point to dig deeper into this topic could be the Aalto list maintained by Mikko Heiskala. BTW, Mikko gives out a Aalto University Weekly, worth a look.

Rewinding back to water for a moment. The 10 articles I mentioned above have 15 different authors from our University. All but two come from the cross-disciplinary Water & Development Research Group. Two persons out of these 15 authors have a Twitter account. The other one seems to be for private life activities only (sport, in this case).

We have looked at a tiny sample of Aalto University researchers. Among them, the only somewhat active, open Twitter account has an About text that says

materials researcher inspired by nature, working on water-repellent surfaces and other functional materials.

A short side-step. Before I tell you who this person is, I need to ask myself: is it OK to do so? In his blog posting Twitter as Public Evidence and the Ethics of Twitter Research, Ernesto Priego summarizes recent discussion on this issue, especially geared to situations where you gather Twitter data from the streaming API or some other source where you have access to potentially millions of tweets.

Well, I’m fairly confident that Robin Ras doesn’t mind me linking to his Twitter site.

Next: homework! Take a look at altmetrics of Switchable Static and Dynamic Self-Assembly of Magnetic Droplets on Superhydrophobic Surfaces, an article that Ras has been coauthoring. Select it by name from the Title, or make a Query by the DOI 10.1126/science.1233775

One final note. If you look closely, there are in fact two false positives among my water articles here. This is due to inevitable but embarrasing bugs in the algorithm that tries to match affiliations. Will be fixed. Sorry about that.

Posted by Tuija Sonkkila

Data Curator at Aalto University. When out of office, in the (rain)forest with binoculars and a travel zoom.
Coding , Data - Comments Off on Altmetrics from different angles

Status update

Just came here to mention briefly that now the new altmetrics app has also a tab for a ggvis graph. I made it to show the comparison between the number of authors and Web of Science citations by Thomson Reuters. AFAIK you cannot make coordinates dynamic in here, as on the top tab which uses the ggplot2 library.

I struggled for a while with ggvis dynamics, but thanks to excellent advice, managed to solve the problem.

There are some cosmetic issues here and there. With only one item, the ggvis plot looks a bit odd. Also, at least with the Chrome browser, tooltips tend to float around until the graph is rendered again, and some tooltip is fired. Firefox does not show tooltips in the All metrics tab, where the library is rCharts. The table on the Data tab is very wide due to several variables/columms etc.

Note that I’ve used one of the most basic Shiny UI layouts. Possibilities are almost limiteless though, because the interface can be coded from scratch.

Please keep in mind that the library development work of R is done by a busy community, and bugs do occur. Especially the ggvis library is very new and by no means ready.

Posted by Tuija Sonkkila

Data Curator at Aalto University. When out of office, in the (rain)forest with binoculars and a travel zoom.
Coding - Comments Off on Status update

New take in recent (alt)metrics

Since November last year, quite a lot has been going on in altmetrics and various tools supporting their use. Of course, new research articles has been authored and published, too.

A while ago, RStudio launched ShinyApps.io, a hosted version of RStudio Shiny Server Pro. A very promising way to deploy Shiny applications. As for now, the company kindly offers free beta accounts (EDIT 11.3.2015 ShinyApps.io is now on a production state, and the maximum number of applications on a free account like mine, is five. Therefore, I’ve had to deactive the app featured in this posting). Here is an application a screenshot showing Aalto University publications since 2010 with a DOI.

screenshot of former AaltoAltm web app

Article metadata and the Web of Science (WoS) score come from Thomson Reuters, and altmetrics data via the Altmetric API. All data is pre-fetched, so the values may differ from those you find on their site. To get hold on Altmetric data, a nice and easy way to query their API in R, is the rAltmetric library by rOpenSci.

For those of you with access to a local R installation, you can also run the app with some sample data from a GitHub Gist by the command runGist("5df86b664b840c5927f9").

Shiny 0.9 came out with many useful novelties, e.g. integration of the selectize.js JavaScript library. With that, you can now start typing in the empty select box, and Shiny will instantly deliver matching items.

There are two plots in the app, made with ggplot2 and rCharts (NVD3), respectively. I had also in mind to try ggvis, a brand new visualization package from RStudio, but failed to plug it in the reactive context. Maybe next time!

The R code is here.

Posted by Tuija Sonkkila

Data Curator at Aalto University. When out of office, in the (rain)forest with binoculars and a travel zoom.
Coding , Data - Comments Off on New take in recent (alt)metrics