1 2 I'm trying to develop a multiplot heatmap.2 saved to a pdf. I'm having some success but the axis labels are getting chopped off. Subplot titles are also desirable but again the labels are getting chopped. Here's my reproducible code: library(gridExtra) library(grid) library(gridGraphics) library(gplots) Col = colorRampPalette(c("red","orange","yellow", "white")) grab_grob <- function() grid.echo() grid.grab() par(cex.main=0.1, mar = c(1,1,1,1) ) #data<-read.table("heatmap.input.matrix.data.txt") lmat = rbind(c(2,3),c(4,1),c(4,1)) lwid = c(2.5,4) lhei = c(0.5,4,3) labRowvec <- c(rep(NULL, dim(matrix(runif(1000, 1,10),ncol=50))[1])) labColvec <- c(rep(NULL, dim(matrix(runif(1000, 1,10),ncol=50))[2])) gl <- lapply(1:12, function(i) heatmap.2(matrix(runif(1000, 1,10),ncol=50), dendrogram = "none",offsetRow=-0.5, offsetCol=-1,srtCol=0, density="density", lmat =lmat,lhei = l
(function() {
var items = ['id': '5576074729397205895', 'body': 'Assalam-o-alikum x3cbr /x3eMustafa main sajjad Ashraf CSIT Depart x3cbr /x3eTCIT (3rd year ) Yr mera blog ka rank b 3 ho gaya Google Page Rank ki Baat Kr raha hon mainy ap sy Milna hai Kab milo ap sy university main. Reply Quick as Possible.', 'timestamp': '1309284960688', 'permalink': 'https://www.mybloggertricks.com/2011/06/how-to-update-public-stats-in.html?showCommentx3d1309284960688#c5576074729397205895', 'author': 'name': 'learn visual studio', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRSnF6NaDZFVLNyxnrAeR9EKPt5Pn63nCHMOe4cY7_SVZj1AFu-J6pBTOl22E19gMsainx2uymYBWlq6zHpwr4gZRz7f4OfRlVIMEAzC0Rh03fIR5qBMND-mpzpZ4Wd-iDOBLv5ii3uJQ/s35/good.jpg', 'profileUrl': 'https://www.blogger.com/profile/02243798795439866634', 'displayTime': 'Jun 28, 2011, 11:16:00 PM', 'deleteclass': 'item-control blog-admin pid-354418709', 'id': '6855956550192549104', 'body': 'W.salam brother Ashraf,x3cbr /x3ex3cbr /x3eOh wow congratx buddy. I will meet you soon InShAllah once the university is open.', 'timestamp': '1309302322059', 'permalink': 'https://www.mybloggertricks.com/2011/06/how-to-update-public-stats-in.html?showCommentx3d1309302322059#c6855956550192549104', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggot5slWGpvs6tNYI0QV_ueCyhuL5rTNQC9X8z9BpYkqwcV5bxSRa3Hki39OryVlf2crGMZPWRdhv5TWdo-21scpi4m55gLRy-wTIJuWRxUTAfJGE8ItZ1umcfOmiwGlJu6Av_iotOSjs/s35/384304wl3ygq6tre.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Jun 29, 2011, 4:05:00 AM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '2530983414464042452', 'body': 'Looks like you are are very lucky with Buysellads. And hey your blog stats are moving rocket high. few weeks back Techgyo.com and MBT were on 37k Alexa now you have moved to 23K. Good work. BTW I see MBT now ranks PR4 Congrats!', 'timestamp': '1309455933470', 'permalink': 'https://www.mybloggertricks.com/2011/06/how-to-update-public-stats-in.html?showCommentx3d1309455933470#c2530983414464042452', 'author': 'name': 'Sreejesh', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJOqwW4qC1RLhUkC8sm5w-cY8PmZNCgLNGi9RyPgysbYW8oOX5OFY9AJL4rd4uvoyrQIhTlYWLB7PXEEwk4OEIZPKvG4YkAfF8-nvqKylcF0IWBI5MShRZMpL9YZEABRURiMxHOglisw4/s35/sreejesh.jpg', 'profileUrl': 'https://www.blogger.com/profile/15633260720248899941', 'displayTime': 'Jun 30, 2011, 10:45:00 PM', 'deleteclass': 'item-control blog-admin pid-1056093800', 'id': '3330097025617278828', 'body': '@Sreejeshx3cbr /x3eAlhamdulillah brother. Just trying. BTW you are going really smooth buddy and congrats to your too for PR4. :) More power!', 'timestamp': '1309457609784', 'permalink': 'https://www.mybloggertricks.com/2011/06/how-to-update-public-stats-in.html?showCommentx3d1309457609784#c3330097025617278828', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggot5slWGpvs6tNYI0QV_ueCyhuL5rTNQC9X8z9BpYkqwcV5bxSRa3Hki39OryVlf2crGMZPWRdhv5TWdo-21scpi4m55gLRy-wTIJuWRxUTAfJGE8ItZ1umcfOmiwGlJu6Av_iotOSjs/s35/384304wl3ygq6tre.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Jun 30, 2011, 11:13:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '6348211726849080461', 'body': '@Mohd, Ix26#39;m sending you some clients(Advertisers) Take care of them. :D', 'timestamp': '1309959530290', 'permalink': 'https://www.mybloggertricks.com/2011/06/how-to-update-public-stats-in.html?showCommentx3d1309959530290#c6348211726849080461', 'author': 'name': 'Sreejesh', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJOqwW4qC1RLhUkC8sm5w-cY8PmZNCgLNGi9RyPgysbYW8oOX5OFY9AJL4rd4uvoyrQIhTlYWLB7PXEEwk4OEIZPKvG4YkAfF8-nvqKylcF0IWBI5MShRZMpL9YZEABRURiMxHOglisw4/s35/sreejesh.jpg', 'profileUrl': 'https://www.blogger.com/profile/15633260720248899941', 'displayTime': 'Jul 6, 2011, 6:38:00 PM', 'deleteclass': 'item-control blog-admin pid-1056093800', 'id': '7553832507190689779', 'body': '@Sreejeshx3cbr /x3ex3cbr /x3eWould be a pleasure buddy and I received your chat request. I will be available after few hours. Right now I have students at my door. :d', 'timestamp': '1309963961474', 'permalink': 'https://www.mybloggertricks.com/2011/06/how-to-update-public-stats-in.html?showCommentx3d1309963961474#c7553832507190689779', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggot5slWGpvs6tNYI0QV_ueCyhuL5rTNQC9X8z9BpYkqwcV5bxSRa3Hki39OryVlf2crGMZPWRdhv5TWdo-21scpi4m55gLRy-wTIJuWRxUTAfJGE8ItZ1umcfOmiwGlJu6Av_iotOSjs/s35/384304wl3ygq6tre.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Jul 6, 2011, 7:52:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285'];
var msgs = 'loadMore': 'Load more...', 'loading': 'Loading...', 'loaded': 'No more!', 'addComment': 'Add comment', 'reply': 'Reply', 'delete': 'Delete';
var config = 'blogId': '8193278726666811965', 'postId': '7927167774202175102', 'feed': 'https://www.mybloggertricks.com/feeds/7927167774202175102/comments/default', 'authorName': 'M. Mustafa Ahmedzai', 'authorUrl': 'https://www.blogger.com/profile/11681339458447132019', 'baseUri': 'https://www.blogger.com', 'maxThreadDepth': 2;
// 0)
cursor = parseInt(items[items.length - 1].timestamp) + 1;
var bodyFromEntry = function(entry)
if (entry.gd$extendedProperty)
for (var k in entry.gd$extendedProperty)
if (entry.gd$extendedProperty[k].name == 'blogger.contentRemoved')
return '' + entry.content.$t + '';
return entry.content.$t;
var parse = function(data)
cursor = null;
var comments = ;
if (data && data.feed && data.feed.entry)
for (var i = 0, entry; entry = data.feed.entry[i]; i++)
var comment = ;
// comment ID, parsed out of the original id format
var id = /blog-(d+).post-(d+)/.exec(entry.id.$t);
comment.id = id ? id[2] : null;
comment.body = bodyFromEntry(entry);
comment.timestamp = Date.parse(entry.published.$t) + '';
if (entry.author && entry.author.constructor === Array)
var auth = entry.author[0];
if (auth)
comment.author =
name: (auth.name ? auth.name.$t : undefined),
profileUrl: (auth.uri ? auth.uri.$t : undefined),
avatarUrl: (auth.gd$image ? auth.gd$image.src : undefined)
;
if (entry.link)
if (entry.link[2])
comment.link = comment.permalink = entry.link[2].href;
if (entry.link[3])
var pid = /.*comments/default/(d+)?.*/.exec(entry.link[3].href);
if (pid && pid[1])
comment.parentId = pid[1];
comment.deleteclass = 'item-control blog-admin';
if (entry.gd$extendedProperty)
for (var k in entry.gd$extendedProperty)
if (entry.gd$extendedProperty[k].name == 'blogger.itemClass')
comment.deleteclass += ' ' + entry.gd$extendedProperty[k].value;
else if (entry.gd$extendedProperty[k].name == 'blogger.displayTime')
comment.displayTime = entry.gd$extendedProperty[k].value;
comments.push(comment);
return comments;
;
var paginator = function(callback) {
if (hasMore()) {
var url = config.feed + '?alt=json&v=2&orderby=published&reverse=false&max-results=50';
if (cursor)
url += '&published-min=' + new Date(cursor).toISOString();
window.bloggercomments = function(data) {
var parsed = parse(data);
cursor = parsed.length
learn visual studioJun 28, 2011, 11:16:00 PM
Assalam-o-alikum
Mustafa main sajjad Ashraf CSIT Depart
TCIT (3rd year ) Yr mera blog ka rank b 3 ho gaya Google Page Rank ki Baat Kr raha hon mainy ap sy Milna hai Kab milo ap sy university main. Reply Quick as Possible.
ReplyDelete
Mohammad Mustafa AhmedzaiJun 29, 2011, 4:05:00 AM
W.salam brother Ashraf,
Oh wow congratx buddy. I will meet you soon InShAllah once the university is open.
ReplyDelete
SreejeshJun 30, 2011, 10:45:00 PM
Looks like you are are very lucky with Buysellads. And hey your blog stats are moving rocket high. few weeks back Techgyo.com and MBT were on 37k Alexa now you have moved to 23K. Good work. BTW I see MBT now ranks PR4 Congrats!
ReplyDelete
Mohammad Mustafa AhmedzaiJun 30, 2011, 11:13:00 PM
@Sreejesh
Alhamdulillah brother. Just trying. BTW you are going really smooth buddy and congrats to your too for PR4. :) More power!
ReplyDelete
SreejeshJul 6, 2011, 6:38:00 PM
@Mohd, I'm sending you some clients(Advertisers) Take care of them. :D
ReplyDelete
Mohammad Mustafa AhmedzaiJul 6, 2011, 7:52:00 PM
@Sreejesh
Would be a pleasure buddy and I received your chat request. I will be available after few hours. Right now I have students at my door. :d
ReplyDelete