Используйте хранимый в таблице параметр для вашей хранимой процедуры.
Когда вы передаете его с C #, вы добавите параметр с типом данных SqlDb.Structured.
См. Здесь: http://msdn.microsoft.com/en-us/library/bb675163.aspx
Пример:
// Assumes connection is an open SqlConnection object.
using (connection)
{
// Create a DataTable with the modified rows.
DataTable addedCategories =
CategoriesDataTable.GetChanges(DataRowState.Added);
// Configure the SqlCommand and SqlParameter.
SqlCommand insertCommand = new SqlCommand(
"usp_InsertCategories", connection);
insertCommand.CommandType = CommandType.StoredProcedure;
SqlParameter tvpParam = insertCommand.Parameters.AddWithValue(
"@tvpNewCategories", addedCategories);
tvpParam.SqlDbType = SqlDbType.Structured;
// Execute the command.
insertCommand.ExecuteNonQuery();
}
Вот один из способов: las=TRUE
повернуть метки по оси y и axis()
для новой оси y с помощью отрегулированных меток.
dates <- 1:10
returns <- runif(10)
plot(dates, returns, yaxt="n")
axis(2, at=pretty(returns), lab=pretty(returns) * 100, las=TRUE)
dates <- 1:100
returns <- runif(100)
yticks_val <- pretty_breaks(n=5)(returns)
plot(dates, returns, yaxt="n")
axis(2, at=yticks_val, lab=percent(yticks_val))
Основные моменты:
Объединив два ответа вместе @rengis @ vladiim
Если вы используете ggplot, вы можете использовать пакет весов .
library(scales)
plot + scale_y_continuous(labels = percent)