PunchCard Chart in R

349 Views
Highlighted
Member
Posts: 97
Registered: ‎02-03-2017

PunchCard Chart in R

[ Edited ]

Used the visual R code below to generate a PunchCard chart for visualizing ingestion of files on two systems.

Since, I had to replace the visual with a standard Power Bi visual + DAX calculations 

 

Prerequisite

MRO or any other flavour of R is a must.

 

 

 

Attachment
Member
Posts: 81
Registered: ‎04-23-2016

Re: PunchCard Chart in R

Hello is this missing R file?

Member
Posts: 81
Registered: ‎04-23-2016

Re: PunchCard Chart in R

Please could you post R script?

Member
Posts: 97
Registered: ‎02-03-2017

Re: PunchCard Chart in R

For some reason the upload tool has failed multiple times. Try the code below

 

par(mar=c(4,4,0,0))
par(oma=c(0,0,0,0))
plot(dataset$Hour, 
	dataset$system, 
	cex=dataset$Files/(max(dataset$Files)/20), 
	col=rgb(144,195,212, maxColorValue=255, alpha=150), 
	pch=19, 
	xaxt="n",
	yaxt="n",
	ylab = "system",
	xlab="hour", 
	bty="n", 
	ylim=c(0,3))
abline(v=dataset$Hour,h=dataset$system,lty=3,col="lightgrey")
axis(1, at=0:23, labels=c(0:23))
axis(2, at=1:2, labels=c("X","Y"))
Moderator
Posts: 40
Registered: ‎08-10-2016

Re: PunchCard Chart in R

Try another browser (may be "chrome").